summaryrefslogtreecommitdiff
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:15:16 +0100
commit1c412dd2778aa37aa47b49d40c538848b24cb1e9 (patch)
tree29988f420babba640c5625fe10428bfc655b6f53
parentd3e42fd6f0afd07ce7d2161b3eafc359aeb5dad2 (diff)
downloadgnutls-1c412dd2778aa37aa47b49d40c538848b24cb1e9.tar.gz
gnutls_pubkey_import_x509_raw: fixed memory leak
-rw-r--r--lib/gnutls_pubkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c
index 04e02d18bd..5a7b6676b3 100644
--- a/lib/gnutls_pubkey.c
+++ b/lib/gnutls_pubkey.c
@@ -2077,7 +2077,7 @@ int gnutls_pubkey_import_x509_raw(gnutls_pubkey_t pkey,
goto cleanup;
}
- return 0;
+ ret = 0;
cleanup:
gnutls_x509_crt_deinit(xpriv);