Fix a leak caused by repeating command by no input
authorLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 19 Feb 2024 21:02:17 +0000 (22:02 +0100)
committerLukáš Jiřiště <gymnazium.jiriste@gmail.com>
Mon, 19 Feb 2024 21:02:17 +0000 (22:02 +0100)
commitf2dce97d5915503fc8aa0e8a7b403a69273f68e2
tree680786af3fdd05954bd8662e6381d518f02a58cb
parent3895416895efa43741a1ed048d2f96d8f657db26
Fix a leak caused by repeating command by no input

When no command is given, the previous action happens. But this action
did not clean the input string "\n", which caused a leak.
src/main.c