summaryrefslogtreecommitdiff
path: root/lib/pubkey.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-01-13 13:14:55 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-01-13 13:14:55 +0100
commitecf3edb4e6b992b8df1bc9c878295c3daabe0369 (patch)
tree35aaa33f0f4d26f99f0e0864701b7f67a1fc6525 /lib/pubkey.c
parentfccea4a3e84de3f4c52a9192efff413f6cc0e264 (diff)
downloadgnutls-ecf3edb4e6b992b8df1bc9c878295c3daabe0369.tar.gz
gnutls_pubkey_import_x509_raw: fixed memory leak
Diffstat (limited to 'lib/pubkey.c')
-rw-r--r--lib/pubkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pubkey.c b/lib/pubkey.c
index 23b0625f5b..02b3db24e2 100644
--- a/lib/pubkey.c
+++ b/lib/pubkey.c
@@ -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);