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]
<41898282+github-actions[bot]@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 <[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 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: [email protected]
For additional commands, e-mail: [email protected]