I am using Java Native Interfaces(JNI). I need to read the content of a char array, so I am going to use GetCharArrayElements. It returns a pointer to a array of native char. Shall I need to release the memory pointed by the pointer at last? To avoid memory leaks, I am asking this question here. Thanks for any hints in advance.