[ https://issues.apache.org/jira/browse/CRYPTO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15345989#comment-15345989 ]
Xianda Ke commented on CRYPTO-89: --------------------------------- GitHub PR: https://github.com/apache/commons-crypto/pull/62 > more robust native code to eliminate memory leak > ------------------------------------------------ > > Key: CRYPTO-89 > URL: https://issues.apache.org/jira/browse/CRYPTO-89 > Project: Commons Crypto > Issue Type: Bug > Reporter: Xianda Ke > Assignee: Xianda Ke > > currently, when handling error in the native code, some resource allocated is > not deallocated. > {code} > input_bytes = (unsigned char *) (*env)->GetByteArrayElements(env, input, > 0); //in some case, it is not deallocated > {code} > the byte array may accupy lots of memory. this can cause serious memory leak > in the long-running server -- This message was sent by Atlassian JIRA (v6.3.4#6332)