Use p_new instead of xmalloc()