From 20695ef3691771dbbfb3d21b14b694c6b7e29eae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Aug 2012 23:57:38 +0200 Subject: playlist_song: fix user-after-free bug --- NEWS | 1 + 1 file changed, 1 insertion(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ea40aa8a..9d85b1e4 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ ver 0.17.2 (2012/??/??) - httpd: fix throttling bug after resuming playback * mapper: fix non-UTF8 music directory name * mapper: fix potential crash in file permission check +* playlist: fix use-after-free bug ver 0.17.1 (2012/07/31) -- cgit v1.2.3 From ef5125f8f4ee992c5a8f24d1b93851db5df5c43d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Aug 2012 23:59:52 +0200 Subject: playlist_print: fix memory leak --- NEWS | 1 + src/playlist_print.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9d85b1e4..41a69d8e 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ ver 0.17.2 (2012/??/??) * mapper: fix non-UTF8 music directory name * mapper: fix potential crash in file permission check * playlist: fix use-after-free bug +* playlist: fix memory leak ver 0.17.1 (2012/07/31) diff --git a/src/playlist_print.c b/src/playlist_print.c index a6bf84cc..59c42f96 100644 --- a/src/playlist_print.c +++ b/src/playlist_print.c @@ -163,6 +163,9 @@ playlist_provider_print(struct client *client, const char *uri, song_print_info(client, song); else song_print_uri(client, song); + + if (!song_in_database(song)) + song_free(song); } g_free(base_uri); -- cgit v1.2.3