fix final cgget cleanup
Signed-off-by: Ivana Hutarova Varekova <[email protected]>
---
src/tools/cgget.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/tools/cgget.c b/src/tools/cgget.c
index 81a5609..ea638b4 100644
--- a/src/tools/cgget.c
+++ b/src/tools/cgget.c
@@ -327,7 +327,7 @@ int main(int argc, char *argv[])
(cgroup_list == NULL)) {
fprintf(stderr, "%s: out of memory\n", argv[0]);
ret = -1;
- goto err;
+ goto err_free;
}
/* Parse arguments. */
@@ -460,5 +460,10 @@ err:
free(names[i]);
}
+err_free:
+ free(cgroup_list);
+ free(controllers);
+ free(names);
+
return result;
}
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel