From 013ebb638a43434e0f9a46a46a853a21abf3311c Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sun, 25 Jul 2010 13:35:59 +0200
Subject: [PATCH] playlist_song: fix memory leak

Free the temporary path string in apply_song_metadata().
---
 src/playlist_song.c | 2 ++
 1 file changed, 2 insertions(+)

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);