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,8 +740,10 @@ window_customize_draw_option(struct window_customize_modedata *data,
|
|||||||
if (strcmp(expanded, value) != 0) {
|
if (strcmp(expanded, value) != 0) {
|
||||||
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy),
|
if (!screen_write_text(ctx, cx, sx, sy - (s->cy - cy),
|
||||||
0, &grid_default_cell, "This expands to: %s",
|
0, &grid_default_cell, "This expands to: %s",
|
||||||
expanded))
|
expanded)) {
|
||||||
|
free(expanded);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
free(expanded);
|
free(expanded);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user