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:
Peter Krempa 2016-03-10 09:57:13 +01:00
parent 8c7b7c4b0b
commit a0143d5242

View File

@ -1433,7 +1433,7 @@ qemuGetSchedInfo(unsigned long long *cpuWait,
cleanup:
VIR_FREE(data);
VIR_FREE(proc);
VIR_FREE(lines);
virStringFreeList(lines);
return ret;
}