- Fixed tmp alloc bug found by zimbabao