]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorJSONMakeCommandInternal: Clear @arguments when stolen
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Nov 2020 14:34:56 +0000 (15:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Jan 2021 08:17:25 +0000 (09:17 +0100)
commit83e1d8fb97701bcdf5cef8a6cf6c0c2c6d8564b6
treea4a6d1f854caaea0d2ca4e1947f39453c981b301
parentf18f4031b1f57c002492b73f93b0c7802daf8e00
qemuMonitorJSONMakeCommandInternal: Clear @arguments when stolen

All callers of qemuMonitorJSONMakeCommandInternal will benefit from
making @arguments a double pointer and passing it to
virJSONValueObjectCreate directly which will clear it if it steals the
value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor_json.c