Commit 7c0e4dfb authored by Max Kellermann's avatar Max Kellermann

input/archive: fix memory leak in error handler

parent 9ec06910
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment