Fix leak in CipherBlock object.

EVP_CIPHER_CTX_cleanup() was being called instead of EVP_CIPHER_CTX_free() so most of the memory was being freed but not all of it.

This leak was masked by Valgrind suppressions which are only applicable to Ubuntu 12.04, which will be addressed in a future commit.
This commit is contained in:
David Steele
2020-05-06 18:09:11 -04:00
parent 10a5182d62
commit e677929802
+1 -1
View File
@@ -77,7 +77,7 @@ Free cipher context
***********************************************************************************************************************************/
OBJECT_DEFINE_FREE_RESOURCE_BEGIN(CIPHER_BLOCK, LOG, logLevelTrace)
{
EVP_CIPHER_CTX_cleanup(this->cipherContext);
EVP_CIPHER_CTX_free(this->cipherContext);
}
OBJECT_DEFINE_FREE_RESOURCE_END(LOG);