mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
Sync OpenBSD patchset 964:
Plug a memory leak and update some comments, from Tiago Cunha.
This commit is contained in:
parent
9b48c77493
commit
653d1e2fc8
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 *);
|
||||
|
@ -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 *);
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user