diff options
author | Max Kellermann <max@duempel.org> | 2012-08-15 23:59:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-16 00:01:01 +0200 |
commit | ef5125f8f4ee992c5a8f24d1b93851db5df5c43d (patch) | |
tree | 91453c165d51e29c78f2638dbcab553044798b0c /src | |
parent | bf2e07074b509087d04b7221a9d25fb2a8b17bee (diff) | |
download | mpd-ef5125f8f4ee992c5a8f24d1b93851db5df5c43d.tar.gz mpd-ef5125f8f4ee992c5a8f24d1b93851db5df5c43d.tar.xz mpd-ef5125f8f4ee992c5a8f24d1b93851db5df5c43d.zip |
playlist_print: fix memory leak
Diffstat (limited to '')
-rw-r--r-- | src/playlist_print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist_print.c b/src/playlist_print.c index a6bf84ccd..59c42f969 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); |