all repos — mgba @ 4153a7e21f0bb6887ed8043a8a98d1803f628bf5

mGBA Game Boy Advance Emulator

Util: Fix memory leak in VDir7z
Vicki Pfau vi@endrift.com
Thu, 16 Jan 2020 20:10:54 -0800
commit

4153a7e21f0bb6887ed8043a8a98d1803f628bf5

parent

b2d406a411b31acce5bbf0246af32a80c22ca834

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/util/vfs/vfs-lzma.csrc/util/vfs/vfs-lzma.c

@@ -128,6 +128,7 @@

bool _vf7zClose(struct VFile* vf) { struct VFile7z* vf7z = (struct VFile7z*) vf; IAlloc_Free(&vf7z->vd->allocImp, vf7z->outBuffer); + free(vf7z); return true; }