mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Free old strings after they have been expanded in format_choose.
This commit is contained in:
		
							
								
								
									
										2
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								format.c
									
									
									
									
									
								
							| @@ -1025,7 +1025,9 @@ format_choose(struct format_tree *ft, const char *s, char **left, char **right, | |||||||
|  |  | ||||||
| 	if (expand) { | 	if (expand) { | ||||||
| 		*left = format_expand(ft, left0); | 		*left = format_expand(ft, left0); | ||||||
|  | 		free(left0); | ||||||
| 		*right = format_expand(ft, right0); | 		*right = format_expand(ft, right0); | ||||||
|  | 		free(right0); | ||||||
| 	} else { | 	} else { | ||||||
| 		*left = left0; | 		*left = left0; | ||||||
| 		*right = right0; | 		*right = right0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm