mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
fixed memory leak in GxsSecurity
This commit is contained in:
parent
bcaafc241d
commit
70f72db0aa
1 changed files with 2 additions and 0 deletions
|
@ -272,6 +272,8 @@ bool GxsSecurity::generateKeyPair(RsTlvPublicRSAKey& public_key,RsTlvPrivateRSAK
|
|||
RSA_generate_key_ex(rsa, 2048, ebn, NULL);
|
||||
RSA *rsa_pub = RSAPublicKey_dup(rsa);
|
||||
|
||||
BN_clear_free(ebn) ;
|
||||
|
||||
public_key.keyFlags = RSTLV_KEY_TYPE_PUBLIC_ONLY ;
|
||||
private_key.keyFlags = RSTLV_KEY_TYPE_FULL ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue