summaryrefslogtreecommitdiffstats
path: root/runtime/zip_archive.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-01-09 11:23:53 -0800
committerMathieu Chartier <mathieuc@google.com>2014-03-05 12:44:22 -0800
commit661974a5561e5ccdfbac8cb5d8df8b7e6f3483b8 (patch)
tree02e428694277d85a98505f8e814aba378fc7651c /runtime/zip_archive.cc
parent3cd52df3d740f8a656233b199dfcaab165f415ff (diff)
downloadart-661974a5561e5ccdfbac8cb5d8df8b7e6f3483b8.tar.gz
art-661974a5561e5ccdfbac8cb5d8df8b7e6f3483b8.tar.bz2
art-661974a5561e5ccdfbac8cb5d8df8b7e6f3483b8.zip
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
Diffstat (limited to 'runtime/zip_archive.cc')
-rw-r--r--runtime/zip_archive.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/zip_archive.cc b/runtime/zip_archive.cc
index ba0b91ede0..ddac7d4236 100644
--- a/runtime/zip_archive.cc
+++ b/runtime/zip_archive.cc
@@ -38,6 +38,9 @@ uint32_t ZipEntry::GetCrc32() {
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());