From 5edbeea338291c3462b7d228cfdee03a284051f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 9 Feb 2020 06:56:53 +0100 Subject: core: fix unlikely memory leak in completion --- src/gui/gui-completion.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui') diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index d84088337..2d9f43d10 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -1320,6 +1320,8 @@ gui_completion_search (struct t_gui_completion *completion, int direction, { case GUI_COMPLETION_NULL: /* should never be executed */ + if (old_word_found) + free (old_word_found); return; case GUI_COMPLETION_COMMAND: gui_completion_command (completion); -- cgit v1.2.3