diff options
author | 2018-08-27 11:03:34 +0000 | |
---|---|---|
committer | 2018-08-27 11:03:34 +0000 | |
commit | 04131cda78bf4f4e764861e37f7c720ef6fa30f2 (patch) | |
tree | 0229d8955be66eb1c3055bd453c99fc5fb3265fb /usr.bin/tmux/cmd-load-buffer.c | |
parent | ompinmux has been replaced by pinctrl (diff) | |
download | wireguard-openbsd-04131cda78bf4f4e764861e37f7c720ef6fa30f2.tar.xz wireguard-openbsd-04131cda78bf4f4e764861e37f7c720ef6fa30f2.zip |
Memory leaks, from Gang Fan in GitHub issue 1453.
Diffstat (limited to 'usr.bin/tmux/cmd-load-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-load-buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 5309dc8925d..8e77995f5d6 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.53 2018/07/31 13:06:44 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.54 2018/08/27 11:03:34 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -87,6 +87,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item) if (error != 0) { cmdq_error(item, "-: %s", cause); free(cause); + free(cdata); return (CMD_RETURN_ERROR); } return (CMD_RETURN_WAIT); |