]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use g_auto for virURI almost everywhere
authorJán Tomko <jtomko@redhat.com>
Wed, 22 Jun 2022 05:14:04 +0000 (07:14 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 22 Jun 2022 10:28:29 +0000 (12:28 +0200)
commit8d9bd178e2d37ae69f3eae4b52719f3913d648b2
tree34dc5b10ea1b5b0b2765fcdf4f4fb360a682f6ff
parent84543b287811c8c2ef4accb89d7b31c41864901a
Use g_auto for virURI almost everywhere

Convert all the cases where we can unconditionally free
the virURI at the end of scope.

In libxlDomainMigrationDstPrepare, uri is only filled
if uri_in was present, so moving the virURIFree out of
the condition is safe.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/esx/esx_driver.c
src/libxl/libxl_migration.c
src/qemu/qemu_migration.c
src/vmx/vmx.c
src/vz/vz_driver.c
src/vz/vz_sdk.c
tests/viruritest.c