]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCookieXMLFormat: Refactor memory handling
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Oct 2020 07:50:37 +0000 (09:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:58:53 +0000 (15:58 +0200)
commit7dce1475447ade2cb6d2c540bb86d23c98c9df98
treea2de1e89c99321edab3187b652b3d4aad277620c
parentdc032481812d907718dc4f09f5cd4db418771fd8
qemuMigrationCookieXMLFormat: Refactor memory handling

Use automatic memory freeing to get rid of the 'error' label. Since the
'tmp' variable was used only in one instance, rename it appropriately.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration_cookie.c