mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Don't leak line, from Tiago Cunha.
This commit is contained in:
		@@ -65,6 +65,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
	       memcpy(buf + len, line, linelen);
 | 
			
		||||
	       len += linelen;
 | 
			
		||||
	       buf[len++] = '\n';
 | 
			
		||||
 | 
			
		||||
	       xfree(line);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	limit = options_get_number(&sess->options, "buffer-limit");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user