From 24ab0821ee1bf644e08aeff6c0ea7429249412be Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 15 Oct 2008 04:20:29 +0000 Subject: Merge several bug-fixes and cleanups. No version bump yet, since this is an ongoing exercise (after more testing, I'll recommend one). Signed-off-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@216 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.c') diff --git a/config.c b/config.c index baaf7d8..6897442 100644 --- a/config.c +++ b/config.c @@ -203,6 +203,8 @@ int cgroup_config_group_task_perm(char *perm_type, char *value) config_cgroup->tasks_gid = val; } + free(perm_type); + free(value); return 1; group_task_error: @@ -267,6 +269,8 @@ int cgroup_config_group_admin_perm(char *perm_type, char *value) config_cgroup->control_gid = val; } + free(perm_type); + free(value); return 1; admin_error: -- cgit