diff options
Diffstat (limited to 'src/wrapper.c')
-rw-r--r-- | src/wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index 2f8fcf2..1ee1665 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -83,8 +83,10 @@ void cgroup_free_controllers(struct cgroup *cgroup) for (i = 0; i < cgroup->index; i++) { for (j = 0; j < cgroup->controller[i]->index; j++) free(cgroup->controller[i]->values[j]); + cgroup->controller[i]->index = 0; free(cgroup->controller[i]); } + cgroup->index = 0; } void cgroup_free(struct cgroup **cgroup) |