Release Virtual Machine Resources
Failing to release virtual machine resources results in a ‘memory leak.’ The following example is missing the ReleaseIntArrayElements call: jint * tempArray = env->GetIntArrayElements(jiArray, false);if (tempArray ){ return;}if (…) //