Skip to content

Commit b823398

Browse files
author
Doug Simon
committed
8345267: Fix memory leak in JVMCIEnv dtor
Reviewed-by: simonis, kbarrett
1 parent 9a48e4d commit b823398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/jvmci/jvmciEnv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ JVMCIEnv::~JVMCIEnv() {
613613
if (_init_error_msg != nullptr) {
614614
// The memory allocated in libjvmci was not allocated with os::malloc
615615
// so must not be freed with os::free.
616-
ALLOW_C_FUNCTION(::free((void*) _init_error_msg));
616+
ALLOW_C_FUNCTION(::free, ::free((void*) _init_error_msg);)
617617
}
618618
if (_init_error != JNI_OK) {
619619
return;

0 commit comments

Comments
 (0)