clear buffer in xmalloc