Fixed recieve side errors with some strange mallocs.