Add several new leak tests and fix leak in spawn (#73)
Check for NULL returns to malloc
Merge pull request #78 from luvit/find-leaks

Find leaks