diff options
author | David Hill <dhill@conformal.com> | 2013-04-20 22:15:36 -0400 |
---|---|---|
committer | David Hill <dhill@conformal.com> | 2013-04-20 22:15:36 -0400 |
commit | 2391894ab335c2dbe5ef63e55db94d1254cb296b (patch) | |
tree | a17efb43e76bc72da3dda56e8416bea7b9adf352 | |
parent | f539e44e600b26880387efbf1a4390daff313181 (diff) | |
download | xombrero-2391894ab335c2dbe5ef63e55db94d1254cb296b.tar.gz |
plug memleak on gnutls_x509_crt_list_import failure
-rw-r--r-- | xombrero.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |