You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/11/04 09:10:02 UTC

(doris) branch branch-4.0 updated: branch-4.0: [Bug](Jni)should delete local ref after convert to global ref #57513 (#57598)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new eb4a8f6ec2f branch-4.0: [Bug](Jni)should delete local ref after convert to global ref #57513 (#57598)
eb4a8f6ec2f is described below

commit eb4a8f6ec2f56f612708c0f205bab7646d15f696
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Tue Nov 4 17:09:55 2025 +0800

    branch-4.0: [Bug](Jni)should delete local ref after convert to global ref #57513 (#57598)
    
    Cherry-picked from #57513
    
    Co-authored-by: zhangstar333 <zh...@selectdb.com>
---
 be/src/util/jni-util.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp
index 369f4dd80c4..f3865f30899 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -339,6 +339,7 @@ Status JniUtil::convert_to_java_map(JNIEnv* env, const std::map<std::string, std
     }
     env->DeleteLocalRef(hashmap_class);
     RETURN_IF_ERROR(LocalToGlobalRef(env, hashmap_local_object, hashmap_object));
+    env->DeleteLocalRef(hashmap_local_object);
     return Status::OK();
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org