iso, zip: fixed memory leak in destructor
Free the "context" pointer in the method archive_plugin.close().
This commit is contained in:
@@ -132,7 +132,8 @@ iso_close(struct archive_file *file)
|
||||
}
|
||||
//close archive
|
||||
iso9660_close(context->iso);
|
||||
context->iso = NULL;
|
||||
|
||||
g_free(context);
|
||||
}
|
||||
|
||||
/* single archive handling */
|
||||
|
Reference in New Issue
Block a user