Sync OpenBSD patchset 964:

Plug a memory leak and update some comments, from Tiago Cunha.
pull/1/head
Tiago Cunha 2011-10-23 15:02:20 +00:00
parent 9b48c77493
commit 653d1e2fc8
4 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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 *);

View File

@ -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 *);

View File

@ -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 *);