diff options
-rw-r--r-- | cmd-capture-pane.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c index 4909531d..4d551706 100644 --- a/cmd-capture-pane.c +++ b/cmd-capture-pane.c @@ -65,6 +65,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx) memcpy(buf + len, line, linelen); len += linelen; buf[len++] = '\n'; + + xfree(line); } limit = options_get_number(&sess->options, "buffer-limit"); |