Fix memory leak in JNI. (#17177)
Fix memory leak in JNI. (#17177)

Co-authored-by: Qing Wang <46b8850ec86b6d5643bdac126ea01b2255cb0b2c@antgroup.com>
ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray,ray-project/ray