Revision: 2616
http://tmux.svn.sourceforge.net/tmux/?rev=2616&view=rev
Author: tcunha
Date: 2011-10-23 15:02:20 +0000 (Sun, 23 Oct 2011)
Log Message:
-----------
Sync OpenBSD patchset 964:
Plug a memory leak and update some comments, from Tiago Cunha.
Modified Paths:
--------------
trunk/cmd-load-buffer.c
trunk/cmd-save-buffer.c
trunk/cmd-set-buffer.c
trunk/cmd-show-buffer.c
Modified: trunk/cmd-load-buffer.c
===================================================================
--- trunk/cmd-load-buffer.c 2011-10-23 15:00:41 UTC (rev 2615)
+++ trunk/cmd-load-buffer.c 2011-10-23 15:02:20 UTC (rev 2616)
@@ -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 @@
}
if (paste_replace(&global_buffers, buffer, pdata, psize) != 0) {
ctx->error(ctx, "no buffer %d", buffer);
+ xfree(pdata);
return (-1);
}
Modified: trunk/cmd-save-buffer.c
===================================================================
--- trunk/cmd-save-buffer.c 2011-10-23 15:00:41 UTC (rev 2615)
+++ trunk/cmd-save-buffer.c 2011-10-23 15:02:20 UTC (rev 2616)
@@ -25,7 +25,7 @@
#include "tmux.h"
/*
- * Saves a session paste buffer to a file.
+ * Saves a paste buffer to a file.
*/
int cmd_save_buffer_exec(struct cmd *, struct cmd_ctx *);
Modified: trunk/cmd-set-buffer.c
===================================================================
--- trunk/cmd-set-buffer.c 2011-10-23 15:00:41 UTC (rev 2615)
+++ trunk/cmd-set-buffer.c 2011-10-23 15:02:20 UTC (rev 2616)
@@ -23,7 +23,7 @@
#include "tmux.h"
/*
- * Add or set a session paste buffer.
+ * Add or set a paste buffer.
*/
int cmd_set_buffer_exec(struct cmd *, struct cmd_ctx *);
Modified: trunk/cmd-show-buffer.c
===================================================================
--- trunk/cmd-show-buffer.c 2011-10-23 15:00:41 UTC (rev 2615)
+++ trunk/cmd-show-buffer.c 2011-10-23 15:02:20 UTC (rev 2616)
@@ -21,7 +21,7 @@
#include "tmux.h"
/*
- * Show a session paste buffer.
+ * Show a paste buffer.
*/
int cmd_show_buffer_exec(struct cmd *, struct cmd_ctx *);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs