summaryrefslogtreecommitdiff
path: root/recipes/glib-networking/0003-tlsconnection-fix-memleak.patch
blob: d1559b4685702d6819b592e5f363f9cf59a900d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From a6a0291ee977b16d8400b63e5b21f21a5332f799 Mon Sep 17 00:00:00 2001
From: Nicola Murino <nicola.murino@gmail.com>
Date: Thu, 24 Sep 2015 12:38:19 +0200
Subject: [PATCH] tlsconnection: fix memleak

https://bugzilla.gnome.org/show_bug.cgi?id=755535

---
 tls/gnutls/gtlsconnection-gnutls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 4074266..749aa03 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -254,6 +254,7 @@ g_tls_connection_gnutls_init_priorities (void)
       fallback_priority = g_strdup_printf ("%s:%%COMPAT:!VERS-TLS-ALL:+VERS-%s",
 					   cleaned_base,
 					   gnutls_protocol_get_name (fallback_proto));
+      g_free (cleaned_base);
     }
   fallback_unsafe_rehandshake_priority = g_strdup_printf ("%s:%%UNSAFE_RENEGOTIATION",
 							  fallback_priority);
-- 
2.5.3