summaryrefslogtreecommitdiffstats
path: root/dirmngr/http.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-07-18 13:47:53 +0200
committerJustus Winter <justus@g10code.com>2017-07-18 13:49:24 +0200
commitebb35ed7110d1a29061dfb4ccb9038645b20d7f4 (patch)
treeec6f709e8a6a1cc35239190826e1d9b784575025 /dirmngr/http.c
parentdirmngr: Fix memory leak. (diff)
downloadgnupg2-ebb35ed7110d1a29061dfb4ccb9038645b20d7f4.tar.xz
gnupg2-ebb35ed7110d1a29061dfb4ccb9038645b20d7f4.zip
dirmngr: Fix memory leak.
* dirmngr/http.c (parse_uri): Properly free partial results. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'dirmngr/http.c')
-rw-r--r--dirmngr/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c
index 3baa53a59..7c9a68250 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -1226,7 +1226,7 @@ parse_uri (parsed_uri_t *ret_uri, const char *uri,
ec = do_parse_uri (*ret_uri, 0, no_scheme_check, force_tls);
if (ec)
{
- xfree (*ret_uri);
+ http_release_parsed_uri (*ret_uri);
*ret_uri = NULL;
}
return gpg_err_make (default_errsource, ec);