From: Dhaval Giani Date: Mon, 22 Jun 2009 13:09:55 +0000 (+0530) Subject: libcgroup: Fix a missing goto in clean cgroups API X-Git-Tag: v0.34~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ea9a7819b717a83af03aa2ea234f105ed717589;p=thirdparty%2Flibcgroup.git libcgroup: Fix a missing goto in clean cgroups API Jan pointed out that there was a goto missing in the error handling paths. Fix that bug. Signed-off-by: Dhaval Giani --- diff --git a/src/config.c b/src/config.c index 5d5155f8..b996b8d8 100644 --- a/src/config.c +++ b/src/config.c @@ -586,6 +586,7 @@ static int cgroup_config_unload_controller(struct cgroup_mount_point mount_info) if (error && error != ECGEOF) { ret = error; cgroup_walk_tree_end(&tree_handle); + goto out_error; } } cgroup_walk_tree_end(&tree_handle);