Skip to content

Commit

Permalink
Fix memory leak in jvmciEnv.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheShermanTanker authored Nov 30, 2024
1 parent 856a719 commit a357017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/jvmci/jvmciEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ JVMCIEnv::~JVMCIEnv() {
if (_init_error_msg != nullptr) {
// The memory allocated in libjvmci was not allocated with os::malloc
// so must not be freed with os::free.
ALLOW_C_FUNCTION(::free((void*) _init_error_msg));
ALLOW_C_FUNCTION(::free, ::free((void*) _init_error_msg);)
}
if (_init_error != JNI_OK) {
return;
Expand Down

0 comments on commit a357017

Please sign in to comment.