[libvirt] [PATCH 3/3] storage: avoid an intermediate malloc