aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-21 19:08:35 +0100
committerMax Kellermann <max@duempel.org>2013-01-21 19:08:35 +0100
commit7c0e4dfb568ebe62b2ac1e2a95647955371434bf (patch)
tree5eab189ba8a2545945870fe789bf075bc9948b37
parent9ec069104f82184fbdc33bb82ead393441a41728 (diff)
downloadmpd-7c0e4dfb568ebe62b2ac1e2a95647955371434bf.tar.gz
mpd-7c0e4dfb568ebe62b2ac1e2a95647955371434bf.tar.xz
mpd-7c0e4dfb568ebe62b2ac1e2a95647955371434bf.zip
input/archive: fix memory leak in error handler
-rw-r--r--src/input/archive_input_plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/archive_input_plugin.c b/src/input/archive_input_plugin.c
index 4a038b9e2..e608dd4a6 100644
--- a/src/input/archive_input_plugin.c
+++ b/src/input/archive_input_plugin.c
@@ -63,8 +63,10 @@ input_archive_open(const char *pathname,
}
file = archive_file_open(arplug, archive, error_r);
- if (file == NULL)
+ if (file == NULL) {
+ g_free(pname);
return NULL;
+ }
//setup fileops
is = archive_file_open_stream(file, filename, mutex, cond,