Back in February, my e991dd1b0c added ESC (when there's no input) as an early return for curses' getline, but it neglected to clean up some allocated memory.
e991dd1b0c