Skip to content

Commit eb4a8f6

Browse files
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]>
1 parent c0b0546 commit eb4a8f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

be/src/util/jni-util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ Status JniUtil::convert_to_java_map(JNIEnv* env, const std::map<std::string, std
339339
}
340340
env->DeleteLocalRef(hashmap_class);
341341
RETURN_IF_ERROR(LocalToGlobalRef(env, hashmap_local_object, hashmap_object));
342+
env->DeleteLocalRef(hashmap_local_object);
342343
return Status::OK();
343344
}
344345

0 commit comments

Comments
 (0)