From e7b87d2066eb15c4ab4c38d6e79e906d69c3f968 Mon Sep 17 00:00:00 2001 From: never Date: Tue, 3 Feb 2009 18:05:19 -0800 Subject: [PATCH] 6782260: Memory leak in CodeBuffer::create_patch_overflow Reviewed-by: phh, kvn --- src/share/vm/asm/codeBuffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/share/vm/asm/codeBuffer.cpp b/src/share/vm/asm/codeBuffer.cpp index cbd16d3e8..7ae4a1323 100644 --- a/src/share/vm/asm/codeBuffer.cpp +++ b/src/share/vm/asm/codeBuffer.cpp @@ -123,6 +123,10 @@ CodeBuffer::~CodeBuffer() { // addresses constructed before expansions will not be confused. cb->free_blob(); } + + // free any overflow storage + delete _overflow_arena; + #ifdef ASSERT Copy::fill_to_bytes(this, sizeof(*this), badResourceValue); #endif -- GitLab