mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Do not leak path when freeing screen, from Sergey Nizovtsev.
This commit is contained in:
		
							
								
								
									
										2
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								screen.c
									
									
									
									
									
								
							@@ -79,6 +79,7 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
 | 
			
		||||
 | 
			
		||||
	s->title = xstrdup("");
 | 
			
		||||
	s->titles = NULL;
 | 
			
		||||
	s->path = NULL;
 | 
			
		||||
 | 
			
		||||
	s->cstyle = 0;
 | 
			
		||||
	s->ccolour = xstrdup("");
 | 
			
		||||
@@ -121,6 +122,7 @@ screen_free(struct screen *s)
 | 
			
		||||
{
 | 
			
		||||
	free(s->sel);
 | 
			
		||||
	free(s->tabs);
 | 
			
		||||
	free(s->path);
 | 
			
		||||
	free(s->title);
 | 
			
		||||
	free(s->ccolour);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user