dirmngr: Fix memory leak.

* dirmngr/http.c (parse_uri): Properly free partial results.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-07-18 13:47:53 +02:00
parent 3d670fa973
commit ebb35ed711
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020
1 changed files with 1 additions and 1 deletions

View File

@ -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);