]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_pubkey_import_x509_raw: fixed memory leak
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 13 Jan 2016 12:14:55 +0000 (13:14 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 13 Jan 2016 12:14:55 +0000 (13:14 +0100)
lib/pubkey.c

index 23b0625f5b7bdfbcdbdfa9473f36dd525110bf73..02b3db24e211d7376494d6e5d5d21881dedb03c9 100644 (file)
@@ -2076,7 +2076,7 @@ int gnutls_pubkey_import_x509_raw(gnutls_pubkey_t pkey,
                goto cleanup;
        }
 
-       return 0;
+       ret = 0;
 
       cleanup:
        gnutls_x509_crt_deinit(xpriv);