]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCookieNBDXMLParse: 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)
commit9d7ca30ecefe76bd81696682d75774ec0378fa3f
tree4a4d8490f1194aa2743c2c5436ed96719049a487
parentabfb033ddb3aa78a1fcb89a904fdfc3d4dca555c
qemuMigrationCookieNBDXMLParse: Refactor memory handling

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

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