From f20dbcff09f82097937efe4476e78cbb12bee354 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 18 Apr 2023 21:30:05 +0200 Subject: Fix memleak in _inp_rl_linehandler Introduced in 59b99fece. --- src/ui/inputwin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui') diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 453dfeac..bc689d5f 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -577,6 +577,7 @@ _inp_rl_linehandler(char* line) if (last == NULL || strcmp(last->line, line) != 0) { add_history(line); } + free(history); } static gboolean shift_tab = FALSE; -- cgit 1.4.1-2-gfad0