]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Don't leak @props with non-JSON in qemuMonitorAddObject
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2015 14:25:58 +0000 (15:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2015 13:25:14 +0000 (14:25 +0100)
commitb15f58838504855f52d89157d99b9f40954fbf81
tree0df8e1bde7196c62eee42c3da7e6c6e6e4ccb177
parent104011ea8b49dd8a0eea6bc88de90ef76c6d8273
qemu: monitor: Don't leak @props with non-JSON in qemuMonitorAddObject

The function comment states that @props is always consumed, even on
failure. This was not true with the failure if the monitor is not using
QMP.
src/qemu/qemu_monitor.c