Correcting moldatfile free->malloc