mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00: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"),
|
||||
group->controllers[i].mountPoint,
|
||||
group->controllers[i].linkPoint);
|
||||
return -1;
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user