a mem leak fix for "ability to compile multiple *.c files with -c switch"