mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Fix memleak in fs_zip.c
This commit is contained in:
parent
c98d89d720
commit
8fdfd41477
@ -135,6 +135,7 @@ static RList *fs_zip_dir(RFSRoot *root, const char *path, R_UNUSED int view) {
|
||||
zip_t *za = zip_open_from_source (zs, _flags, &error);
|
||||
if (!za) {
|
||||
R_LOG_ERROR ("failed to open zip from source");
|
||||
zip_source_free (zs);
|
||||
free (buf);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user