qemu: Avoid memory leak in virQEMUCapsCPUDefsToModels
qemu: Avoid memory leak in virQEMUCapsCPUDefsToModels

The @vendor variable inside virQEMUCapsCPUDefsToModels() is
allocated, but never freed. But there is actually no need for it
to be allocated, because it merely passes a retval of
virCPUGetVendorForModel() (which returns a const string) to
virDomainCapsCPUModelsAdd() (which ten accepts the argument as
const string). Therefore, drop the g_strdup() call and fix the
type of the variable.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

olafhering/libvirt,jfehlig/libvirt,libvirt/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,olafhering/libvirt,jfehlig/libvirt,jfehlig/libvirt,libvirt/libvirt,libvirt/libvirt,zippy2/libvirt,zippy2/libvirt,zippy2/libvirt,jfehlig/libvirt,olafhering/libvirt