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:
|
cleanup:
|
||||||
VIR_FREE(data);
|
VIR_FREE(data);
|
||||||
VIR_FREE(proc);
|
VIR_FREE(proc);
|
||||||
VIR_FREE(lines);
|
virStringFreeList(lines);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user