mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
cgroup.c: avoid unconditional leaks
* src/util/cgroup.c (virCgroupCpuSetInherit) [HAVE_MNTENT_H]: Don't leak CPU-set inheritance value strings.
This commit is contained in:
parent
b56fbbad0b
commit
a16a96942d
@ -432,6 +432,7 @@ static int virCgroupCpuSetInherit(virCgroupPtr parent, virCgroupPtr group)
|
|||||||
VIR_CGROUP_CONTROLLER_CPUSET,
|
VIR_CGROUP_CONTROLLER_CPUSET,
|
||||||
inherit_values[i],
|
inherit_values[i],
|
||||||
value);
|
value);
|
||||||
|
VIR_FREE(value);
|
||||||
|
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
VIR_ERROR("Failed to set %s %d", inherit_values[i], rc);
|
VIR_ERROR("Failed to set %s %d", inherit_values[i], rc);
|
||||||
|
Loading…
Reference in New Issue
Block a user