]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCookieCapsXMLParse: 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)
commit83434e5acd68fa1badb8444a1fb1571c3cbe4c69
treeeb10e56264a3829301f23558c2ec55f0db27d74f
parent9d7ca30ecefe76bd81696682d75774ec0378fa3f
qemuMigrationCookieCapsXMLParse: Refactor memory handling

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

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