mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added missign cleanup call, causing a small memory leak
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6992 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b7bb1c25cb
commit
2dcf0acef3
@ -81,6 +81,7 @@ bool RsAES::aes_crypt_8_16(const uint8_t *input_data,uint32_t input_data_length,
|
|||||||
|
|
||||||
output_data_length = c_len + f_len;
|
output_data_length = c_len + f_len;
|
||||||
|
|
||||||
|
EVP_CIPHER_CTX_cleanup(&e_ctx) ;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,6 +134,7 @@ bool RsAES::aes_decrypt_8_16(const uint8_t *input_data,uint32_t input_data_lengt
|
|||||||
|
|
||||||
output_data_length = c_len + f_len;
|
output_data_length = c_len + f_len;
|
||||||
|
|
||||||
|
EVP_CIPHER_CTX_cleanup(&e_ctx) ;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user