]> xenbits.xensource.com Git - libvirt.git/commit
remote: Fix cached hypervisor type
authorJim Fehlig <jfehlig@suse.com>
Fri, 8 Dec 2023 01:38:22 +0000 (18:38 -0700)
committerJim Fehlig <jfehlig@suse.com>
Fri, 8 Dec 2023 15:18:39 +0000 (08:18 -0700)
commit1a2f33cb593e6bf4913d97143bf76d5e7f866912
treebe3b9d8910129fa757e82ff7a4e7c24647167417
parentfba411a80512d406869e6c54b483988d24844d30
remote: Fix cached hypervisor type

Commit 501825011c switched the remote driver to using g_auto, but missed
one case of needing to steal a pointer holding the hypervisor type.
Without it, memory is freed and the output of 'virsh version' has random
output

Compiled against library: libvirt 10.0.0
Using library: libvirt 10.0.0
Using API: ��%�U 10.0.0
Running hypervisor: ��U 8.1.3

Ths change also fixes random SIGABRT from perl processes running
libvirt-tck tests.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/remote/remote_driver.c