From 4153a7e21f0bb6887ed8043a8a98d1803f628bf5 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 16 Jan 2020 20:10:54 -0800 Subject: [PATCH] Util: Fix memory leak in VDir7z --- src/util/vfs/vfs-lzma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/vfs/vfs-lzma.c b/src/util/vfs/vfs-lzma.c index da2a6fe8e..d56883c48 100644 --- a/src/util/vfs/vfs-lzma.c +++ b/src/util/vfs/vfs-lzma.c @@ -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; }