]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationCapsToJSON: Refactor variable cleanup
authorPeter Krempa <pkrempa@redhat.com>
Wed, 19 Aug 2020 11:20:13 +0000 (13:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Aug 2020 14:34:51 +0000 (16:34 +0200)
commit99e4467bb1dd06bbf02eda8492ba0f9bce855531
treeffc76869f3d349495ba44c51836f468560e24c21
parent47a9f078f0ed01d49c938f6a4c6efbac1766026d
qemuMigrationCapsToJSON: Refactor variable cleanup

Use automatic memory allocation and move variables into correct scope to
simplify the code and remove the need for a 'error:' label.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration_params.c