mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 16:18:16 +00:00
cgroups: use __do_free in cgfsng_attach()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
6280d4c97d
commit
c05b17bd66
@ -2097,8 +2097,7 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops, const char *name,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; ops->hierarchies[i]; i++) {
|
for (i = 0; ops->hierarchies[i]; i++) {
|
||||||
__do_free char *path = NULL;
|
__do_free char *fullpath = NULL, *path = NULL;
|
||||||
char *fullpath = NULL;
|
|
||||||
struct hierarchy *h = ops->hierarchies[i];
|
struct hierarchy *h = ops->hierarchies[i];
|
||||||
|
|
||||||
if (h->version == CGROUP2_SUPER_MAGIC) {
|
if (h->version == CGROUP2_SUPER_MAGIC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user