]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCookieNetworkXMLParse: Refactor memory handling
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Oct 2020 07:53:54 +0000 (09:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:58:53 +0000 (15:58 +0200)
commitabfb033ddb3aa78a1fcb89a904fdfc3d4dca555c
tree0b15c34fdfb27a8885bf96a4570c629049a2ffc0
parent7dce1475447ade2cb6d2c540bb86d23c98c9df98
qemuMigrationCookieNetworkXMLParse: Refactor memory handling

Use modern allocators, automatic memory feeing, and decrease the scope
of some variables to remove the 'error' label.

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