mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Plug a memory leak and update some comments, from Tiago Cunha.
This commit is contained in:
		@@ -27,7 +27,7 @@
 | 
			
		||||
#include "tmux.h"
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Loads a session paste buffer from a file.
 | 
			
		||||
 * Loads a paste buffer from a file.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
int	cmd_load_buffer_exec(struct cmd *, struct cmd_ctx *);
 | 
			
		||||
@@ -125,6 +125,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
	}
 | 
			
		||||
	if (paste_replace(&global_buffers, buffer, pdata, psize) != 0) {
 | 
			
		||||
		ctx->error(ctx, "no buffer %d", buffer);
 | 
			
		||||
		xfree(pdata);
 | 
			
		||||
		return (-1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user