conf: allow set_string_arg to overwrite previous values (i.e. don't leak)
Michael
This commit is contained in:
		
							parent
							
								
									5e399a7e17
								
							
						
					
					
						commit
						f60aa47715
					
				| @ -385,6 +385,10 @@ static int set_string_arg (char **var, const char *line, regmatch_t * match) | |||||||
|         if (!arg) |         if (!arg) | ||||||
|                 return -1; |                 return -1; | ||||||
| 
 | 
 | ||||||
|  |         if (*var != NULL) { | ||||||
|  |                 safefree (*var); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         *var = arg; |         *var = arg; | ||||||
| 
 | 
 | ||||||
|         return 0; |         return 0; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Michael Adam
						Michael Adam