Update output.c

Fixed memory leak in saveoutput() where temporary array "x" was allocated but never freed
Merge pull request #4 from thisIsMikeKane/patch-1

Update output.c