diff --git a/hotspot/src/share/vm/memory/metaspaceShared.cpp b/hotspot/src/share/vm/memory/metaspaceShared.cpp index 613907d8420..db1a380535c 100644 --- a/hotspot/src/share/vm/memory/metaspaceShared.cpp +++ b/hotspot/src/share/vm/memory/metaspaceShared.cpp @@ -649,6 +649,7 @@ void VM_PopulateDumpSharedSpace::doit() { mapinfo->close(); memmove(vtbl_list, saved_vtbl, vtbl_list_size * sizeof(void*)); + os::free(saved_vtbl); if (PrintSharedSpaces) { DumpAllocClosure dac;