mirror of
https://github.com/tmux/tmux.git
synced 2026-06-24 03:47:40 +00:00
Memory leak from someone in GitHub issue 5259.
This commit is contained in:
@@ -740,9 +740,11 @@ window_customize_draw_option(struct window_customize_modedata *data,
|
||||
if (strcmp(expanded, value) != 0) {
|
||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy),
|
||||
0, &grid_default_cell, "This expands to: %s",
|
||||
expanded))
|
||||
expanded)) {
|
||||
free(expanded);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
free(expanded);
|
||||
}
|
||||
if (oe != NULL && oe->type == OPTIONS_TABLE_CHOICE) {
|
||||
|
||||
Reference in New Issue
Block a user