From 7c0e4dfb568ebe62b2ac1e2a95647955371434bf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Jan 2013 19:08:35 +0100 Subject: input/archive: fix memory leak in error handler --- src/input/archive_input_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3