mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix memory leak in status_command handler
This commit is contained in:
		
							parent
							
								
									c988b03d85
								
							
						
					
					
						commit
						ab3a397d58
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -20,6 +20,8 @@ struct cmd_results *bar_cmd_status_command(int argc, char **argv) {
 | 
			
		|||
		config->current_bar->status_command = new_command;
 | 
			
		||||
		wlr_log(WLR_DEBUG, "Feeding bar with status command: %s",
 | 
			
		||||
				config->current_bar->status_command);
 | 
			
		||||
	} else {
 | 
			
		||||
		free(new_command);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (config->active && !config->validating) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue