Remove debug messages and use msFree with smallMalloc