Fix memleak in fs_zip.c

This commit is contained in:
icy17 2023-01-27 19:46:09 +08:00 committed by GitHub
parent c98d89d720
commit 8fdfd41477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}