mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* gpgkeys_finger.c (main), gpgkeys_hkp.c (main): Fix --version output.
* gpgkeys_curl.c (main): Make sure the curl handle is cleaned up on failure.
This commit is contained in:
parent
01f0036d23
commit
203e4835f6
4 changed files with 13 additions and 4 deletions
|
@ -470,8 +470,6 @@ main(int argc,char *argv[])
|
|||
|
||||
ret=get_key(thekey);
|
||||
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
fail:
|
||||
|
||||
free(thekey);
|
||||
|
@ -482,6 +480,9 @@ main(int argc,char *argv[])
|
|||
if(output!=stdout)
|
||||
fclose(output);
|
||||
|
||||
if(curl)
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
curl_global_cleanup();
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue