fix small memory leak in pinentry-curses