Fix some memory leaks.
Merge branch 'cooking' of github.com:graphitemaster/gmqcc into cooking