change xmalloc to malloc in make patch