Skip to content

Commit

Permalink
lib-dcrypt: Fixed memory leak in test-crypto unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jun 19, 2016
1 parent 97559e0 commit 6fd4b93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-dcrypt/test-crypto.c
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6fd4b93

Please sign in to comment.