From 3543d79048f4fc0e72c57f109a201baf4ebfaf3e Mon Sep 17 00:00:00 2001 From: nicm <nicm> Date: Tue, 4 Mar 2025 08:03:19 +0000 Subject: [PATCH] Free fill character string if it cannot be used, GitHub issue 4394. --- window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/window.c b/window.c index a6354e20..dc220462 100644 --- a/window.c +++ b/window.c @@ -1759,6 +1759,8 @@ window_set_fill_character(struct window *w) ud = utf8_fromcstr(value); if (ud != NULL && ud[0].width == 1) w->fill_character = ud; + else + free(ud); } }