Fix link bug with LLVM dependency on libcurses
Fixed a runtime issue with an unfreed pointer.

Not 100% sure how this was still compiling.

Robert Ankeney pointed out the change to me based on feedback he saw on the
llvm/clang mailing lists.
Update build history