Don't leak line, from Tiago Cunha.

pull/1/head
Nicholas Marriott 2010-01-20 18:30:20 +00:00
parent 7d75dbbdda
commit 097a501414
1 changed files with 2 additions and 0 deletions

View File

@ -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");