]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemumonitorjsontest: use virCPUDefNew()
authorJán Tomko <jtomko@redhat.com>
Sat, 22 Feb 2020 00:06:51 +0000 (01:06 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 9 Mar 2020 14:46:43 +0000 (15:46 +0100)
commit9aa2426795f0cda8976400325a80d59180baa2b3
tree3f028b7b74eb3cefa4d382278eff3a499e850c49
parent01e68455b0c0642e008c2b7ef4858361843b5a00
qemumonitorjsontest: use virCPUDefNew()

virCPUDefPtr uses refcounting internally and must be allocated
using virCPUDefNew, otherwise virCPUDefFree would be a no-op.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: fa2404bf4f91813431beb797fc30a1237a743823
Fixes: eee09435eec46553aac4fdf1c2d8f3214167bded
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemumonitorjsontest.c