From da01d20c1973d5feca02f770bca647f9fc3ffc01 Mon Sep 17 00:00:00 2001 From: Timofey Lagutin Date: Sat, 10 Jan 2015 23:31:24 +0300 Subject: [PATCH] classpath-openjdk: Fix freeZipFileEntry() Those ZipFile::Entries are part of ZipFile instance itself and will fail to free(). See :1504 and :1520 in openZipFile(). --- src/classpath-openjdk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 6247eda6ca..beb032c35c 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -1792,9 +1792,9 @@ void JNICALL freeZipFileEntry(Thread* t, GcMethod* method, uintptr_t* arguments) 0, file->file, entry->entry); - } - t->m->heap->free(entry, sizeof(ZipFile::Entry)); + t->m->heap->free(entry, sizeof(ZipFile::Entry)); + } } int64_t JNICALL