summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-rw-r--r--src/gui/curses/gui-curses-key.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c
index d82ce7897..ca887b7b9 100644
--- a/src/gui/curses/gui-curses-key.c
+++ b/src/gui/curses/gui-curses-key.c
@@ -482,8 +482,7 @@ gui_key_flush (int paste)
}
}
- if (input_old)
- free (input_old);
+ free (input_old);
}
/* prepare incomplete UTF-8 char for next iteration */