1
0
Fork 0
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:
David Shaw 2005-02-05 15:04:59 +00:00
parent 01f0036d23
commit 203e4835f6
4 changed files with 13 additions and 4 deletions

View file

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