testCompareXMLToArgvValidateSchema: Construct @vm from scratch
testCompareXMLToArgvValidateSchema: Construct @vm from scratch

Currently, the @vm is passed in as an argument and
testCompareXMLToArgvCreateArgs() is called over it which means
under the hood qemuProcessPrepareDomain() is called. But at the
point where ValidateSchema() is called, the domain object is
already 'prepared', i.e. all device aliases are assigned and so
on. But our code is not prepared to 'prepare' a domain twice - it
simply overwrites all the pointers leading to a memory leak.

Fortunately, this is only the problem of this test.

Resolve this by constructing the domain object from scratch.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>

jfehlig/libvirt,jfehlig/libvirt,crobinso/libvirt,zippy2/libvirt,jardasgit/libvirt,jardasgit/libvirt,nertpinx/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt,olafhering/libvirt,zippy2/libvirt,olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,libvirt/libvirt,jfehlig/libvirt,libvirt/libvirt,libvirt/libvirt,nertpinx/libvirt,jfehlig/libvirt,nertpinx/libvirt,crobinso/libvirt,crobinso/libvirt,jardasgit/libvirt,nertpinx/libvirt,zippy2/libvirt