unix main: Free input line.

Also, readline uses system malloc, so for symmetry, use the same for
non-readline case.