From 2391894ab335c2dbe5ef63e55db94d1254cb296b Mon Sep 17 00:00:00 2001 From: David Hill Date: Sat, 20 Apr 2013 22:15:36 -0400 Subject: plug memleak on gnutls_x509_crt_list_import failure --- xombrero.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xombrero.c b/xombrero.c index 95d59bd..87c025c 100644 --- a/xombrero.c +++ b/xombrero.c @@ -2068,6 +2068,7 @@ get_local_cert_chain(const char *uri, size_t *ncerts, const char **error_str, *ncerts = INT_MAX; if (gnutls_x509_crt_list_import(certs, &len, &data, GNUTLS_X509_FMT_PEM, 0) < 0) { + g_free(certs); *error_str = "Error reading local cert chain"; return (NULL); } -- cgit 1.4.1-2-gfad0