mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vircgroup: Resolve Coverity RESOURCE_LEAK
Need to free 'root' and 'opts' before 'return -1' if symlink fails. Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
This commit is contained in:
parent
4f2ad084bc
commit
d01a062be6
@ -3757,7 +3757,7 @@ virCgroupIsolateMount(virCgroupPtr group, const char *oldroot,
|
|||||||
_("Unable to symlink directory %s to %s"),
|
_("Unable to symlink directory %s to %s"),
|
||||||
group->controllers[i].mountPoint,
|
group->controllers[i].mountPoint,
|
||||||
group->controllers[i].linkPoint);
|
group->controllers[i].linkPoint);
|
||||||
return -1;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user