]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testQemuMonitorJSONGetCommands: Refactor cleanup
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Jun 2021 13:56:16 +0000 (15:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Jun 2021 14:58:23 +0000 (16:58 +0200)
commitd5578879a85faec2b4e24270549bcdd7e65ea411
tree5298d86340ad6362c50ca7e1ffc0925d5f0c63c4
parented4c75c4daf4c629f54343870f953c5324ba8c4d
testQemuMonitorJSONGetCommands: Refactor cleanup

Use g_auto(GStrv) for clearing the string list and thus remove the
'cleanup' section and 'ret' variable.

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