]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationParamsToJSON: Refactor variable cleanup
authorPeter Krempa <pkrempa@redhat.com>
Wed, 19 Aug 2020 11:18:31 +0000 (13:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Aug 2020 14:34:51 +0000 (16:34 +0200)
commit47a9f078f0ed01d49c938f6a4c6efbac1766026d
treec64932cec53776b79fa2ec0a78c3b6108512ccca
parentf2108c790c7a238d390406cb52ce87e18260ca94
qemuMigrationParamsToJSON: 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