From: Christian Brauner Date: Sat, 17 Feb 2018 18:39:33 +0000 (+0100) Subject: cgfsng: recursive_count_nrtasks() X-Git-Tag: lxc-2.0.10~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad3f655c227b1c1aee53ce905ba7aa5f9ce0673;p=thirdparty%2Flxc.git cgfsng: recursive_count_nrtasks() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 79952ffff..950d0b46e 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2266,7 +2266,7 @@ static int recursive_count_nrtasks(char *dirname) goto next; count += recursive_count_nrtasks(path); -next: + next: free(path); } @@ -2276,7 +2276,7 @@ next: count += ret; free(path); - (void) closedir(dir); + (void)closedir(dir); return count; }