mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
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:
parent
3d670fa973
commit
ebb35ed711
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user