A couple of memory leaks from someone in GitHub issue 4590.

This commit is contained in:
nicm
2025-08-22 07:48:23 +00:00
parent 7325da3052
commit 94bafa5aaf
2 changed files with 4 additions and 2 deletions

View File

@ -248,8 +248,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item)
}
file_print_buffer(c, buf, len);
file_print(c, "\n");
free(buf);
}
free(buf);
} else {
bufname = NULL;
if (args_has(args, 'b'))