[libvirt] [PATCH] free memory properly in cleanup patch