From 13c499557851e6336f8d0317af26e281fb583b48 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 17 Feb 2018 19:39:33 +0100 Subject: [PATCH] cgfsng: recursive_count_nrtasks() Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 3a3aa395b..189635fdf 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2288,7 +2288,7 @@ static int recursive_count_nrtasks(char *dirname) goto next; count += recursive_count_nrtasks(path); -next: + next: free(path); } @@ -2298,7 +2298,7 @@ next: count += ret; free(path); - (void) closedir(dir); + (void)closedir(dir); return count; } -- 2.47.2