about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-04-18 21:30:05 +0200
committerMichael Vetter <jubalh@iodoru.org>2023-04-18 21:30:05 +0200
commitf20dbcff09f82097937efe4476e78cbb12bee354 (patch)
treee68f64a475d21dddd3bf2f0264e4fc9151a8b10e /src/ui
parentabaf96dcefb929121a877bf3ce80b6defe2d9f3c (diff)
downloadprofani-tty-f20dbcff09f82097937efe4476e78cbb12bee354.tar.gz
Fix memleak in _inp_rl_linehandler
Introduced in 59b99fece.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/inputwin.c1
1 files changed, 1 insertions, 0 deletions
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;