input/archive: close the archive file on error
Fixed memory leak in error handler.
This commit is contained in:
@@ -66,6 +66,7 @@ input_archive_open(struct input_stream *is, const char *pathname)
|
||||
|
||||
if (!opened) {
|
||||
g_warning("open inarchive file %s failed\n\n",filename);
|
||||
arplug->close(file);
|
||||
} else {
|
||||
is->ready = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user