the lib common already provides xmalloc(), xrealloc() and the p_new() and p_realloc() wrappers. AFAICT, they make those two functions useless.