]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: simplify string cleanup
authorEric Blake <eblake@redhat.com>
Fri, 26 Apr 2013 17:47:23 +0000 (11:47 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 13 May 2013 21:15:54 +0000 (15:15 -0600)
commit082274ea419fb1f91ebc1c3972f846423e911253
tree7fd7c0cc0c5bba43c4587da3cd69cef544010fb9
parent764bb5e5aafeef5e8822b8fdde56021903bb9634
qemu: simplify string cleanup

No need to open code a string list cleanup, if we are nice
to the caller by guaranteeing a NULL-terminated result.

* src/qemu/qemu_monitor_json.c (qemuMonitorJSONGetCPUDefinitions)
(qemuMonitorJSONGetCommands, qemuMonitorJSONGetEvents)
(qemuMonitorJSONGetObjectTypes, qemuMonitorJSONGetObjectProps):
Use simpler cleanup.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_monitor_json.c