6782260: Memory leak in CodeBuffer::create_patch_overflow

Reviewed-by: phh, kvn
This commit is contained in:
Tom Rodriguez 2009-02-03 18:05:19 -08:00
parent 17d35f31a2
commit c46f747070

View file

@ -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