]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorTestAddItemVerbatim: Simplify cleanup
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 May 2023 12:05:46 +0000 (14:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Jun 2023 07:41:25 +0000 (09:41 +0200)
commitd74f8e95e36ed07199f4ddccca8447e47a0fe52b
tree1f15546dfda424630a446c8420937827af22bc13
parent23802429283d899fcd432a1cb6600e015b3c99cd
qemuMonitorTestAddItemVerbatim: Simplify cleanup

Reformat the JSON string before allocating the test data structure so
that we don't have to free it if the reformatting fails.

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