]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
eliminated memory leak on PK self check.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 22 Nov 2013 15:27:39 +0000 (16:27 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2013 10:41:44 +0000 (11:41 +0100)
lib/crypto-selftests-pk.c

index 46a060a4901f0440970a17b760ce7e67b91f521c..d81e833b55be572453e826b60f41264f1d7e83b0 100644 (file)
@@ -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);