[libvirt] [PATCH] fix a realloc problem