mirror of https://github.com/mgba-emu/mgba.git
Util: Fix memory leak in VDir7z
This commit is contained in:
parent
b2d406a411
commit
4153a7e21f
src/util/vfs
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue