]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
libcgroup: Fix a missing goto in clean cgroups API
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 22 Jun 2009 13:09:55 +0000 (18:39 +0530)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Mon, 22 Jun 2009 13:09:55 +0000 (18:39 +0530)
Jan pointed out that there was a goto missing in the error
handling paths. Fix that bug.

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
src/config.c

index 5d5155f81f88e27d85bb2e290ae2ac84fbd3cd67..b996b8d85e8f15da47e409992d5de5b9c423a430 100644 (file)
@@ -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);