mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Fix memory leak, from Gabriel Souza Franco.
This commit is contained in:
		
							
								
								
									
										4
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								format.c
									
									
									
									
									
								
							| @@ -3564,12 +3564,12 @@ found: | |||||||
| 	} | 	} | ||||||
| 	if (modifiers & FORMAT_QUOTE_SHELL) { | 	if (modifiers & FORMAT_QUOTE_SHELL) { | ||||||
| 		saved = found; | 		saved = found; | ||||||
| 		found = xstrdup(format_quote_shell(saved)); | 		found = format_quote_shell(saved); | ||||||
| 		free(saved); | 		free(saved); | ||||||
| 	} | 	} | ||||||
| 	if (modifiers & FORMAT_QUOTE_STYLE) { | 	if (modifiers & FORMAT_QUOTE_STYLE) { | ||||||
| 		saved = found; | 		saved = found; | ||||||
| 		found = xstrdup(format_quote_style(saved)); | 		found = format_quote_style(saved); | ||||||
| 		free(saved); | 		free(saved); | ||||||
| 	} | 	} | ||||||
| 	return (found); | 	return (found); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm