From 2dcf0acef31f5034e514fa0f5676543f1f75024c Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 6 Jan 2014 22:45:30 +0000 Subject: [PATCH] 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 --- libretroshare/src/util/rsaes.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/util/rsaes.cc b/libretroshare/src/util/rsaes.cc index a7eeec85c..282234008 100644 --- a/libretroshare/src/util/rsaes.cc +++ b/libretroshare/src/util/rsaes.cc @@ -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; + EVP_CIPHER_CTX_cleanup(&e_ctx) ; 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; + EVP_CIPHER_CTX_cleanup(&e_ctx) ; return true; }