input/archive: fix memory leak in error handler
This commit is contained in:
parent
9ec069104f
commit
7c0e4dfb56
@ -63,8 +63,10 @@ input_archive_open(const char *pathname,
|
|||||||
}
|
}
|
||||||
|
|
||||||
file = archive_file_open(arplug, archive, error_r);
|
file = archive_file_open(arplug, archive, error_r);
|
||||||
if (file == NULL)
|
if (file == NULL) {
|
||||||
|
g_free(pname);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
//setup fileops
|
//setup fileops
|
||||||
is = archive_file_open_stream(file, filename, mutex, cond,
|
is = archive_file_open_stream(file, filename, mutex, cond,
|
||||||
|
Loading…
Reference in New Issue
Block a user