Added malloc call through JNI.