diff a/src/hotspot/share/prims/unsafe.cpp b/src/hotspot/share/prims/unsafe.cpp --- a/src/hotspot/share/prims/unsafe.cpp +++ b/src/hotspot/share/prims/unsafe.cpp @@ -873,13 +873,11 @@ if (anon_klass != NULL) { res_jh = JNIHandles::make_local(env, anon_klass->java_mirror()); } // try/finally clause: - if (temp_alloc != NULL) { - FREE_C_HEAP_ARRAY(u1, temp_alloc); - } + FREE_C_HEAP_ARRAY(u1, temp_alloc); // The anonymous class loader data has been artificially been kept alive to // this point. The mirror and any instances of this class have to keep // it alive afterwards. if (anon_klass != NULL) {