[glib-networking/pgriffis/gnutls-leak] gnutls: Fix potential leak
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/pgriffis/gnutls-leak] gnutls: Fix potential leak
- Date: Mon, 23 Aug 2021 14:22:06 +0000 (UTC)
commit f7b3250d3e3fce4ea02b00610d9f2148ade4a6ce
Author: Patrick Griffis <pgriffis igalia com>
Date: Mon Aug 23 09:21:48 2021 -0500
gnutls: Fix potential leak
tls/gnutls/gtlscertificate-gnutls.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tls/gnutls/gtlscertificate-gnutls.c b/tls/gnutls/gtlscertificate-gnutls.c
index 0461974c..11f5c5c7 100644
--- a/tls/gnutls/gtlscertificate-gnutls.c
+++ b/tls/gnutls/gtlscertificate-gnutls.c
@@ -710,6 +710,7 @@ g_tls_certificate_gnutls_copy (GTlsCertificateGnutls *gnutls,
gnutls->private_key_pkcs11_uri ?
gnutls->private_key_pkcs11_uri : gnutls->pkcs11_uri);
if (status != GNUTLS_E_SUCCESS)
{
+ gnutls_privkey_deinit (*pkey);
*pkey = NULL;
g_info ("Failed to copy PKCS #11 private key: %s", gnutls_strerror (status));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]