input/archive: fix memory leak in error handler

This commit is contained in:
Max Kellermann 2013-01-21 19:08:35 +01:00
parent 9ec069104f
commit 7c0e4dfb56

View File

@ -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,