mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #3579 from RedSoxFan/fix-workspace-gaps-double-free
cmd_workspace_gaps: fix double free on bad amount
This commit is contained in:
		
						commit
						fb73f84d0e
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -76,7 +76,6 @@ static struct cmd_results *cmd_workspace_gaps(int argc, char **argv,
 | 
				
			||||||
	char *end;
 | 
						char *end;
 | 
				
			||||||
	int amount = strtol(argv[gaps_location + 2], &end, 10);
 | 
						int amount = strtol(argv[gaps_location + 2], &end, 10);
 | 
				
			||||||
	if (strlen(end)) {
 | 
						if (strlen(end)) {
 | 
				
			||||||
		free(end);
 | 
					 | 
				
			||||||
		return cmd_results_new(CMD_FAILURE, expected);
 | 
							return cmd_results_new(CMD_FAILURE, expected);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue