Plug a leak in READLINE mode.

Move the 'key' variable freeing out of the EDITLINE #ifdef.