Fix valgrind gtests and memory leaks.
All tests pass other than image_test which passes if some bad reads
are disabled (buzbee working on this).
Change-Id: Ifd6b6e3aed0bc867703b6e818353a9f296609422
diff --git a/runtime/zip_archive.cc b/runtime/zip_archive.cc
index ba0b91e..ddac7d4 100644
--- a/runtime/zip_archive.cc
+++ b/runtime/zip_archive.cc
@@ -38,6 +38,9 @@
return zip_entry_->crc32;
}
+ZipEntry::~ZipEntry() {
+ delete zip_entry_;
+}
bool ZipEntry::ExtractToFile(File& file, std::string* error_msg) {
const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd());