From 7d6ebf75bda193d693de3088c719f911428b0ed9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Sep 2014 21:24:03 -0400 Subject: [PATCH] playlist: early exit if NULL is passed to content_playlist_free_entry --- playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.c b/playlist.c index 0bf3a7f8ba..b953399bca 100644 --- a/playlist.c +++ b/playlist.c @@ -61,6 +61,9 @@ void content_playlist_get_index(content_playlist_t *playlist, static void content_playlist_free_entry( struct content_playlist_entry *entry) { + if (!entry) + return; + if (entry->path) free(entry->path); entry->path = NULL;