VFS: Fix memory leak when failing to open 7z
Vicki Pfau vi@endrift.com
Mon, 03 Sep 2018 11:29:02 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/util/vfs/vfs-lzma.c
→
src/util/vfs/vfs-lzma.c
@@ -98,6 +98,7 @@
SzArEx_Init(&vd->db); SRes res = SzArEx_Open(&vd->db, &vd->lookStream.s, &vd->allocImp, &vd->allocTempImp); if (res != SZ_OK) { + SzArEx_Free(&vd->db, &vd->allocImp); File_Close(&vd->archiveStream.file); free(vd); return 0;