about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2013-04-20 19:40:27 -0400
committerDavid Hill <dhill@conformal.com>2013-04-20 19:40:27 -0400
commitf539e44e600b26880387efbf1a4390daff313181 (patch)
treef202fc7e964a41c9e28a2dbc147dad6a4cff20f2
parent0ebe4f016d493a751d12187b20eca1736d22e812 (diff)
downloadxombrero-f539e44e600b26880387efbf1a4390daff313181.tar.gz
plug memleak in get_local_cert_chain
-rw-r--r--xombrero.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c
index ad5b287..95d59bd 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -2050,6 +2050,7 @@ get_local_cert_chain(const char *uri, size_t *ncerts, const char **error_str,
 	}
 
 	snprintf(file, sizeof file, "%s" PS "%s", dir, su->host);
+	soup_uri_free(su);
 	if ((f = fopen(file, "r")) == NULL) {
 		*error_str = "Could not read local cert";
 		return (NULL);