]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix bad free
authorEric Blake <eblake@redhat.com>
Mon, 13 May 2013 22:48:55 +0000 (16:48 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 13 May 2013 22:48:55 +0000 (16:48 -0600)
commit0b923ba3c81c106e78f1f2e553f040784fe841cc
tree3cc775341a525d759cf3eef991b3438b6473d150
parentbf87b99d728c20c72dbb50696b825b4072f323f7
qemu: fix bad free

Commit bd56d0d8 could lead to freeing an uninitialized pointer:

qemu/qemu_monitor_json.c: In function 'qemuMonitorJSONGetCommandLineOptionParameters':
qemu/qemu_monitor_json.c:4284: warning: 'cmd' may be used uninitialized in this function

* src/qemu/qemu_monitor_json.c
(qemuMonitorJSONGetCommandLineOptionParameters): Initialize variable.

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