Fix missing free() calls for miniz allocations

This commit is contained in:
baldurk
2020-08-28 18:26:26 +01:00
parent 0e5b08d0e1
commit 75f2dc119c
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -105,6 +105,7 @@ bool ExtractAndRemoveManifest(const rdcstr &apk, bytebuf &manifest)
RDCLOG("Got manifest of %zu bytes", sz);
manifest = bytebuf(buf, sz);
free(buf);
break;
}
}
+2
View File
@@ -1000,6 +1000,8 @@ static bool ZIP2Buffers(const rdcstr &filename, ThumbTypeAndData &thumb, ThumbTy
}
}
free(buf);
if(progress)
progress(BufferProgress(float(i) / float(numfiles)));
}