summaryrefslogtreecommitdiff
path: root/lib/crypto-selftests-pk.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-22 16:27:39 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-27 11:41:44 +0100
commit45f6c9893516f467400dc486ecaccaf433985e0c (patch)
tree0926790a354f30ff690b3457795700ccb544611e /lib/crypto-selftests-pk.c
parent7ea57bef06f96546a2c61b0463c401813d39c0e8 (diff)
downloadgnutls-45f6c9893516f467400dc486ecaccaf433985e0c.tar.gz
eliminated memory leak on PK self check.
Diffstat (limited to 'lib/crypto-selftests-pk.c')
-rw-r--r--lib/crypto-selftests-pk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto-selftests-pk.c b/lib/crypto-selftests-pk.c
index 46a060a490..d81e833b55 100644
--- a/lib/crypto-selftests-pk.c
+++ b/lib/crypto-selftests-pk.c
@@ -379,6 +379,7 @@ static int test_known_sig(gnutls_pk_algorithm_t pk, unsigned bits,
ret = 0;
cleanup:
+ gnutls_free(sig.data);
if (pub != 0)
gnutls_pubkey_deinit(pub);
gnutls_privkey_deinit(key);