diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-10-23 15:02:20 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-10-23 15:02:20 +0000 |
commit | 653d1e2fc80a4eca4f819b31bacd7119038276d6 (patch) | |
tree | 84900b828bd11dcfd38d5485d60983e5cdec45b3 /cmd-load-buffer.c | |
parent | 9b48c77493b46786f3536a12b19b6c9689f43544 (diff) | |
download | rtmux-653d1e2fc80a4eca4f819b31bacd7119038276d6.tar.gz rtmux-653d1e2fc80a4eca4f819b31bacd7119038276d6.tar.bz2 rtmux-653d1e2fc80a4eca4f819b31bacd7119038276d6.zip |
Sync OpenBSD patchset 964:
Plug a memory leak and update some comments, from Tiago Cunha.
Diffstat (limited to 'cmd-load-buffer.c')
-rw-r--r-- | cmd-load-buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c index eba23d94..af6fea7f 100644 --- a/cmd-load-buffer.c +++ b/cmd-load-buffer.c @@ -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); } |