]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Fixed memory leak in test-crypto unit test
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 19 Jun 2016 15:44:55 +0000 (18:44 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 19 Jun 2016 15:44:55 +0000 (18:44 +0300)
src/lib-dcrypt/test-crypto.c

index d8432869e94d2dad43b9c73e0b16a5aaae0b2a5e..4e2e6885a6fed774d7085d40daa48279a8853573 100644 (file)
@@ -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();
 }