Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
currently, when handling error in the native code, some resource allocated is not deallocated.
input_bytes = (unsigned char *) (*env)->GetByteArrayElements(env, input, 0); //in some case, it is not deallocated
the byte array may accupy lots of memory. this can cause serious memory leak in the long-running server