[
https://issues.apache.org/jira/browse/CRYPTO-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dapeng Sun resolved CRYPTO-89.
------------------------------
Resolution: Fixed
Thank Xianda.
CRYPTO-89: more robust native code to eliminate memory leak
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/800c831a
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/800c831a
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/800c831a
> 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)