提交 484a0bab 编写于 作者: H Hendrik Schwartke 提交者: Michal Privoznik

qemu: Fix segfault in qemuMonitorTextGetBlockInfo

If some error occurs then the cleanup code calls VIR_FREE(info)
without ensuring that info is initialized.
上级 efb0839c
......@@ -219,6 +219,7 @@ Patches have also been contributed by:
Laszlo Ersek <lersek@redhat.com>
Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Hendrik Schwartke <hendrik@os-t.de>
[....send patches to get your name here....]
......
......@@ -774,7 +774,7 @@ int qemuMonitorTextGetMemoryStats(qemuMonitorPtr mon,
int qemuMonitorTextGetBlockInfo(qemuMonitorPtr mon,
virHashTablePtr table)
{
struct qemuDomainDiskInfo *info;
struct qemuDomainDiskInfo *info = NULL;
char *reply = NULL;
int ret = -1;
char *dummy;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册