mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
dirmgr: clean up memory on error code paths
* dirmgr/crlcache.c (finish_sig_check): goto leave instead of return * dirmgr/http.c (send_request): free authstr and proxy_authstr * dirmgr/ldap.c (start_cert_fetch_ldap): free proxy * dirmgr/ocsp.c (check_signature): release s_hash -- Signed-off-by: Jakub Jelen <jjelen@redhat.com> GnuPG-bug-id: 5393
This commit is contained in:
parent
a95ddffdcd
commit
0d2c1e9046
4 changed files with 16 additions and 6 deletions
|
@ -2208,7 +2208,11 @@ send_request (ctrl_t ctrl, http_t hd, const char *httphost, const char *auth,
|
|||
|
||||
p = build_rel_path (hd->uri);
|
||||
if (!p)
|
||||
return gpg_err_make (default_errsource, gpg_err_code_from_syserror ());
|
||||
{
|
||||
xfree (authstr);
|
||||
xfree (proxy_authstr);
|
||||
return gpg_err_make (default_errsource, gpg_err_code_from_syserror ());
|
||||
}
|
||||
|
||||
if (http_proxy && *http_proxy)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue