mirror of https://github.com/tmux/tmux.git
Don't leak line, from Tiago Cunha.
parent
7d75dbbdda
commit
097a501414
|
@ -65,6 +65,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||||
memcpy(buf + len, line, linelen);
|
memcpy(buf + len, line, linelen);
|
||||||
len += linelen;
|
len += linelen;
|
||||||
buf[len++] = '\n';
|
buf[len++] = '\n';
|
||||||
|
|
||||||
|
xfree(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
limit = options_get_number(&sess->options, "buffer-limit");
|
limit = options_get_number(&sess->options, "buffer-limit");
|
||||||
|
|
Loading…
Reference in New Issue