aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 13:35:59 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 13:35:59 +0200
commit013ebb638a43434e0f9a46a46a853a21abf3311c (patch)
tree5319f8bb753e9d24c7dd927af35daa56a20015ab
parentbedb82bf4d88a533e37f330665ff67d031f31cb8 (diff)
playlist_song: fix memory leak
Free the temporary path string in apply_song_metadata().
-rw-r--r--src/playlist_song.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist_song.c b/src/playlist_song.c
index fede0b3a..20fac59d 100644
--- a/src/playlist_song.c
+++ b/src/playlist_song.c
@@ -63,6 +63,8 @@ apply_song_metadata(struct song *dest, const struct song *src)
return dest;
tmp = song_file_new(path_fs, NULL);
+ g_free(path_fs);
+
merge_song_metadata(tmp, dest, src);
} else {
tmp = song_file_new(dest->uri, NULL);