8075288: malloc without free in VM_PopulateDumpSharedSpace::doit()
authordholmes
Tue, 19 May 2015 01:34:53 -0400
changeset 30753 75e795c4d14f
parent 30751 deee942af125
child 30754 7835e375c453
8075288: malloc without free in VM_PopulateDumpSharedSpace::doit() Reviewed-by: dholmes, stuefe Contributed-by: Jungwoo Ha <jwha@google.com>
hotspot/src/share/vm/memory/metaspaceShared.cpp
--- a/hotspot/src/share/vm/memory/metaspaceShared.cpp	Sat May 16 13:19:11 2015 -0700
+++ b/hotspot/src/share/vm/memory/metaspaceShared.cpp	Tue May 19 01:34:53 2015 -0400
@@ -649,6 +649,7 @@
   mapinfo->close();
 
   memmove(vtbl_list, saved_vtbl, vtbl_list_size * sizeof(void*));
+  os::free(saved_vtbl);
 
   if (PrintSharedSpaces) {
     DumpAllocClosure dac;