[glib-networking] Do not leak certificate file contents
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] Do not leak certificate file contents
- Date: Mon, 23 May 2016 06:36:00 +0000 (UTC)
commit 3b96e46598ea01098b422483c64b10fd28a17b89
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon May 23 08:35:05 2016 +0200
Do not leak certificate file contents
tls/tests/certificate.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/tests/certificate.c b/tls/tests/certificate.c
index 5e3468b..ae4c621 100644
--- a/tls/tests/certificate.c
+++ b/tls/tests/certificate.c
@@ -274,6 +274,7 @@ test_create_certificate_no_chain (void)
g_assert_no_error (error);
cert = g_tls_certificate_new_from_pem (cert_pem, cert_pem_length - 100, &error);
+ g_free (cert_pem);
g_assert_no_error (error);
g_assert (G_IS_TLS_CERTIFICATE (cert));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]