From: Timo Sirainen Date: Sun, 19 Jun 2016 15:44:55 +0000 (+0300) Subject: lib-dcrypt: Fixed memory leak in test-crypto unit test X-Git-Tag: 2.3.0.rc1~3486 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f04dd9abc3bb9cf42a33ece383fa31d51d0c8d8;p=thirdparty%2Fdovecot%2Fcore.git lib-dcrypt: Fixed memory leak in test-crypto unit test --- diff --git a/src/lib-dcrypt/test-crypto.c b/src/lib-dcrypt/test-crypto.c index d8432869e9..4e2e6885a6 100644 --- a/src/lib-dcrypt/test-crypto.c +++ b/src/lib-dcrypt/test-crypto.c @@ -301,6 +301,8 @@ void test_load_v2_public_key(void) test_assert(dcrypt_key_store_public(pub, DCRYPT_FORMAT_DOVECOT, tmp, &error)); test_assert(strcmp(key, str_c(tmp))==0); + buffer_free(&tmp); + dcrypt_key_free_public(&pub); test_end(); }