[libvirt PATCH 3/6] tests: qemu: use g_autofree where possible