Fixed a memory leak in the command-line tool that caused a valgrind error.
This commit is contained in:
		
							
								
								
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							@@ -9,6 +9,8 @@
 | 
				
			|||||||
Daniel Fandrich (18 Jun 2008)
 | 
					Daniel Fandrich (18 Jun 2008)
 | 
				
			||||||
- Added SSH failure test cases 628-632
 | 
					- 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)
 | 
					Daniel Stenberg (18 Jun 2008)
 | 
				
			||||||
- Rob Crittenden brought a fix for the NSS layer that makes libcurl no longer
 | 
					- 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
 | 
					  always fire up a new connection rather than using the existing one when the
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3646,6 +3646,8 @@ static void free_config_fields(struct Configurable *config)
 | 
				
			|||||||
    free(config->pubkey);
 | 
					    free(config->pubkey);
 | 
				
			||||||
  if (config->referer)
 | 
					  if (config->referer)
 | 
				
			||||||
    free(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->quote); /* checks for config->quote == NULL */
 | 
				
			||||||
  curl_slist_free_all(config->prequote);
 | 
					  curl_slist_free_all(config->prequote);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user