Fixed memory leak on incorrect route configuration
This commit is contained in:
		 Albin Eldstål-Damlin
					Albin Eldstål-Damlin
				
			
				
					committed by
					
						 Max Kellermann
						Max Kellermann
					
				
			
			
				
	
			
			
			 Max Kellermann
						Max Kellermann
					
				
			
						parent
						
							0ac0bd26e7
						
					
				
				
					commit
					ff3393ebf1
				
			| @@ -159,6 +159,8 @@ route_filter_parse(const struct config_param *param, | ||||
| 			g_set_error(error_r, config_quark(), 1, | ||||
| 				"Invalid copy around %d in routes spec: %s", | ||||
| 				param->line, tokens[c]); | ||||
| 			g_strfreev(sd); | ||||
| 			g_strfreev(tokens); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| @@ -196,6 +198,8 @@ route_filter_parse(const struct config_param *param, | ||||
| 			g_set_error(error_r, config_quark(), 1, | ||||
| 				"Invalid copy around %d in routes spec: %s", | ||||
| 				param->line, tokens[c]); | ||||
| 			g_strfreev(sd); | ||||
| 			g_strfreev(tokens); | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user