mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Fix memory leak in qemuGetSchedInfo
Memory returned from virStringSplit shall be freed with
virStringFreeList rather than VIR_FREE. Introduced in commit 511e7c5b
.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316433
This commit is contained in:
parent
8c7b7c4b0b
commit
a0143d5242
@ -1433,7 +1433,7 @@ qemuGetSchedInfo(unsigned long long *cpuWait,
|
||||
cleanup:
|
||||
VIR_FREE(data);
|
||||
VIR_FREE(proc);
|
||||
VIR_FREE(lines);
|
||||
virStringFreeList(lines);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user