From: Dan Fandrich Date: Thu, 19 Jun 2008 00:30:02 +0000 (+0000) Subject: Fixed a memory leak in the command-line tool that caused a valgrind error. X-Git-Tag: curl-7_19_0~442 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65ee4e45559be30771f383884d135a927b49849d;p=thirdparty%2Fcurl.git Fixed a memory leak in the command-line tool that caused a valgrind error. --- diff --git a/CHANGES b/CHANGES index 0491327cce..aa69979515 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,8 @@ Daniel Fandrich (18 Jun 2008) - Added SSH failure test cases 628-632 +- Fixed a memory leak in the command-line tool that caused a valgrind error. + Daniel Stenberg (18 Jun 2008) - Rob Crittenden brought a fix for the NSS layer that makes libcurl no longer always fire up a new connection rather than using the existing one when the diff --git a/src/main.c b/src/main.c index 92f5efa97a..077dc8c289 100644 --- a/src/main.c +++ b/src/main.c @@ -3646,6 +3646,8 @@ static void free_config_fields(struct Configurable *config) free(config->pubkey); if (config->referer) free(config->referer); + if (config->hostpubmd5) + free(config->hostpubmd5); curl_slist_free_all(config->quote); /* checks for config->quote == NULL */ curl_slist_free_all(config->prequote);