[Libvir] [PATCH] Handle failed strdup and malloc.