mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	read_config: fix leak on error
Found through static analysis.
This commit is contained in:
		
							parent
							
								
									a2354d5992
								
							
						
					
					
						commit
						0c6149171b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -583,6 +583,8 @@ bool read_config(FILE *file, struct sway_config *config) {
 | 
			
		|||
		}
 | 
			
		||||
		char *expanded = expand_line(block, line, brace_detected > 0);
 | 
			
		||||
		if (!expanded) {
 | 
			
		||||
			list_foreach(stack, free);
 | 
			
		||||
			list_free(stack);
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
		wlr_log(L_DEBUG, "Expanded line: %s", expanded);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue