This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new f5f1a6c61b5 branch-3.1: [Bug](Jni)should delete local ref after
convert to global ref #57513 (#57597)
f5f1a6c61b5 is described below
commit f5f1a6c61b5ed2ca29a4abf18d8e94dbd986f52e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 4 10:55:20 2025 +0800
branch-3.1: [Bug](Jni)should delete local ref after convert to global ref
#57513 (#57597)
Cherry-picked from #57513
Co-authored-by: zhangstar333 <[email protected]>
---
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 47675ba1714..856d1a18891 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -336,6 +336,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: [email protected]
For additional commands, e-mail: [email protected]