VFS: Fix memory leak if attempt to open a 7z fails
Vicki Pfau vi@endrift.com
Fri, 21 Feb 2020 00:03:48 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/util/vfs/vfs-lzma.c
→
src/util/vfs/vfs-lzma.c
@@ -105,6 +105,7 @@ SRes res = SzArEx_Open(&vd->db, &vd->lookStream.vt, &vd->allocImp, &vd->allocTempImp);
if (res != SZ_OK) { SzArEx_Free(&vd->db, &vd->allocImp); File_Close(&vd->archiveStream.file); + free(vd->lookStream.buf); free(vd); return 0; }