[glib-networking/wip/openssl] gtlsfiledatabase-openssl: do not leak the stack
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/openssl] gtlsfiledatabase-openssl: do not leak the stack
- Date: Sat, 21 May 2016 14:54:41 +0000 (UTC)
commit dbd265e6f5776d6ca21c7055147dd9d1af0920aa
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 21 16:53:08 2016 +0200
gtlsfiledatabase-openssl: do not leak the stack
tls/openssl/gtlsfiledatabase-openssl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tls/openssl/gtlsfiledatabase-openssl.c b/tls/openssl/gtlsfiledatabase-openssl.c
index 3f1c01d..7b42d5e 100644
--- a/tls/openssl/gtlsfiledatabase-openssl.c
+++ b/tls/openssl/gtlsfiledatabase-openssl.c
@@ -772,6 +772,7 @@ g_tls_file_database_openssl_verify_chain (GTlsDatabase *database,
{
X509_STORE_CTX_cleanup (&csc);
X509_STORE_free (store);
+ sk_X509_free (certs);
return G_TLS_CERTIFICATE_GENERIC_ERROR;
}
@@ -789,6 +790,7 @@ g_tls_file_database_openssl_verify_chain (GTlsDatabase *database,
X509_STORE_CTX_cleanup (&csc);
X509_STORE_free (store);
+ sk_X509_free (certs);
if (g_cancellable_set_error_if_cancelled (cancellable, error))
return G_TLS_CERTIFICATE_GENERIC_ERROR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]