Skip to content

Commit

Permalink
cgroups: use __do_free in cgfsng_attach()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jun 27, 2019
1 parent 6280d4c commit c05b17b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -2097,8 +2097,7 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops, const char *name,
return false;

for (i = 0; ops->hierarchies[i]; i++) {
__do_free char *path = NULL;
char *fullpath = NULL;
__do_free char *fullpath = NULL, *path = NULL;
struct hierarchy *h = ops->hierarchies[i];

if (h->version == CGROUP2_SUPER_MAGIC) {
Expand Down

0 comments on commit c05b17b

Please sign in to comment.