hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 15097 9db149412e0e
parent 14583 d70ee55535f4
child 15099 b31d40895bbb
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Wed Dec 19 10:35:08 2012 -0800
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Thu Dec 20 10:22:19 2012 +0100
@@ -361,6 +361,9 @@
   set_protection_domain(NULL);
   set_signers(NULL);
   set_init_lock(NULL);
+
+  // We should deallocate the Annotations instance
+  MetadataFactory::free_metadata(loader_data, annotations());
   set_annotations(NULL);
 }