Skip to content

Commit

Permalink
Util: Fix memory leak in VDir7z
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Jan 17, 2020
1 parent b2d406a commit 4153a7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/vfs/vfs-lzma.c
Expand Up @@ -128,6 +128,7 @@ struct VDir* VDirOpen7z(const char* path, int flags) {
bool _vf7zClose(struct VFile* vf) {
struct VFile7z* vf7z = (struct VFile7z*) vf;
IAlloc_Free(&vf7z->vd->allocImp, vf7z->outBuffer);
free(vf7z);
return true;
}

Expand Down

0 comments on commit 4153a7e

Please sign in to comment.