commit bf9925817290154a1c33106d3ca0630c60729689 from: Omar Polo date: Fri Mar 12 21:33:18 2021 UTC don't leak memory if message gets called before the cleaning code commit - b1df9b71b9b1ea1d102e827cf7cdb3ed824741a3 commit + bf9925817290154a1c33106d3ca0630c60729689 blob - dbdb10698208dec844279e376a853e21d2992959 blob + bd7a428603870c036454b67c15c3f64185a7c17d --- ui.c +++ ui.c @@ -1544,6 +1544,8 @@ message(const char *fmt, ...) evtimer_set(&clminibufev, handle_clear_minibuf, NULL); evtimer_add(&clminibufev, &clminibufev_timer); clminibufev_set = 1; + + free(ministate.curmesg); va_start(ap, fmt); /* TODO: what to do if the allocation fails here? */