free list of input files
remove unnecessary malloc
Merge pull request #3 from rampantmonkey/memory-management

Memory management fixes in linker rename.