diff options
author | Justus Winter <justus@g10code.com> | 2017-07-18 13:47:53 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-07-18 13:49:24 +0200 |
commit | ebb35ed7110d1a29061dfb4ccb9038645b20d7f4 (patch) | |
tree | ec6f709e8a6a1cc35239190826e1d9b784575025 /dirmngr/http.c | |
parent | dirmngr: Fix memory leak. (diff) | |
download | gnupg2-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.c | 2 |
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); |