mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Fix segfault in qemuMonitorTextGetBlockInfo
If some error occurs then the cleanup code calls VIR_FREE(info) without ensuring that info is initialized.
This commit is contained in:
parent
efb0839c1d
commit
484a0bab39
1
AUTHORS
1
AUTHORS
@ -219,6 +219,7 @@ Patches have also been contributed by:
|
|||||||
Laszlo Ersek <lersek@redhat.com>
|
Laszlo Ersek <lersek@redhat.com>
|
||||||
Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
|
Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
|
||||||
Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
|
Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
|
||||||
|
Hendrik Schwartke <hendrik@os-t.de>
|
||||||
|
|
||||||
[....send patches to get your name here....]
|
[....send patches to get your name here....]
|
||||||
|
|
||||||
|
@ -774,7 +774,7 @@ int qemuMonitorTextGetMemoryStats(qemuMonitorPtr mon,
|
|||||||
int qemuMonitorTextGetBlockInfo(qemuMonitorPtr mon,
|
int qemuMonitorTextGetBlockInfo(qemuMonitorPtr mon,
|
||||||
virHashTablePtr table)
|
virHashTablePtr table)
|
||||||
{
|
{
|
||||||
struct qemuDomainDiskInfo *info;
|
struct qemuDomainDiskInfo *info = NULL;
|
||||||
char *reply = NULL;
|
char *reply = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
char *dummy;
|
char *dummy;
|
||||||
|
Loading…
Reference in New Issue
Block a user