mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
Do not leak cached last result from control subs, from Aaron Campbell in
GitHub issue 5047.
This commit is contained in:
@@ -208,10 +208,12 @@ control_free_sub(struct control_state *cs, struct control_sub *csub)
|
||||
|
||||
RB_FOREACH_SAFE(csp, control_sub_panes, &csub->panes, csp1) {
|
||||
RB_REMOVE(control_sub_panes, &csub->panes, csp);
|
||||
free(csp->last);
|
||||
free(csp);
|
||||
}
|
||||
RB_FOREACH_SAFE(csw, control_sub_windows, &csub->windows, csw1) {
|
||||
RB_REMOVE(control_sub_windows, &csub->windows, csw);
|
||||
free(csw->last);
|
||||
free(csw);
|
||||
}
|
||||
free(csub->last);
|
||||
|
||||
Reference in New Issue
Block a user