Util: Fix memory leak in VDir7z

This commit is contained in:
Vicki Pfau 2020-01-16 20:10:54 -08:00
parent b2d406a411
commit 4153a7e21f
1 changed files with 1 additions and 0 deletions
src/util/vfs

View File

@ -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;
}