Fixed error in tmp memory allocator causing rotates to be snarfed