mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +00:00
qemu: fix memory leak in qemuAgentGetFSInfo
in virDomainFSInfoFree(), don't free the virDomainFSInfo data. ==10670== 80 bytes in 2 blocks are definitely lost in loss record 576 of 793 ==10670== at 0x4A06BC3: calloc (vg_replace_malloc.c:618) ==10670== by 0x509DEBD: virAlloc (viralloc.c:144) ==10670== by 0x19FBD558: qemuAgentGetFSInfo (qemu_agent.c:1837) ==10670== by 0x1A03CF91: qemuDomainGetFSInfo (qemu_driver.c:19238) Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> (cherry picked from commit f276b36d65f5013425eb57524de7d919d99aba9a)
This commit is contained in:
parent
a2d4e78296
commit
0f9ee86062
@ -11262,4 +11262,6 @@ virDomainFSInfoFree(virDomainFSInfoPtr info)
|
||||
for (i = 0; i < info->ndevAlias; i++)
|
||||
VIR_FREE(info->devAlias[i]);
|
||||
VIR_FREE(info->devAlias);
|
||||
|
||||
VIR_FREE(info);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user