diff options
author | Max Kellermann <max@duempel.org> | 2010-07-25 13:35:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-07-25 13:35:59 +0200 |
commit | 013ebb638a43434e0f9a46a46a853a21abf3311c (patch) | |
tree | 5319f8bb753e9d24c7dd927af35daa56a20015ab | |
parent | bedb82bf4d88a533e37f330665ff67d031f31cb8 (diff) |
playlist_song: fix memory leak
Free the temporary path string in apply_song_metadata().
-rw-r--r-- | src/playlist_song.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist_song.c b/src/playlist_song.c index fede0b3a1..20fac59d8 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); |