diff options
author | Justus Winter <[email protected]> | 2017-07-18 11:47:53 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-07-18 11:49:24 +0000 |
commit | ebb35ed7110d1a29061dfb4ccb9038645b20d7f4 (patch) | |
tree | ec6f709e8a6a1cc35239190826e1d9b784575025 /dirmngr/http.c | |
parent | dirmngr: Fix memory leak. (diff) | |
download | gnupg-ebb35ed7110d1a29061dfb4ccb9038645b20d7f4.tar.gz gnupg-ebb35ed7110d1a29061dfb4ccb9038645b20d7f4.zip |
dirmngr: Fix memory leak.
* dirmngr/http.c (parse_uri): Properly free partial results.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-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); |