Use new alloc and free functions for utp global state