Memory leak from someone in GitHub issue 5259.

This commit is contained in:
nicm
2026-06-22 12:39:56 +00:00
parent 49dff83a00
commit d8370864f3

View File

@@ -740,8 +740,10 @@ 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);
}