Skip to content

Commit

Permalink
[fix](jvm)fix jvm metrics memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Nov 18, 2024
1 parent c45ba39 commit 8f7fc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/util/jvm_metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ Status JvmStats::refresh(JvmMetrics* jvm_metrics) const {
jvm_metrics->jvm_thread_count->set_value(threadCount < 0 ? 0 : threadCount);

for (int i = 0; i < threadCount; i++) {
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, threadInfo, env,
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(jobject, threadInfo, env,
GetObjectArrayElement((jobjectArray)threadInfos, i));

if (threadInfo == nullptr) {
Expand Down

0 comments on commit 8f7fc5f

Please sign in to comment.