A couple of memory allocation bugs have been removed.