From 96baa975d749de2580fd352473b8dde81e081f08 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Sun, 11 May 2008 10:27:04 +0000 Subject: Merge with Dhaval's branch Signed-off-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@26 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcg_ba.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') diff --git a/tests/libcg_ba.cpp b/tests/libcg_ba.cpp index a820196..b8df520 100644 --- a/tests/libcg_ba.cpp +++ b/tests/libcg_ba.cpp @@ -82,17 +82,14 @@ struct cgroup *cg::makenode(const string &name, const string &task_uid, dbg("tuid %d, tgid %d, cuid %d, cgid %d\n", tuid, tgid, cuid, cgid); - ccg->name = (char *)malloc(strlen(name.c_str()) + 1); strcpy(ccg->name, name.c_str()); ccg->controller[0] = (struct controller *) calloc(1, sizeof(struct controller)); - ccg->controller[0]->name = (char *)malloc(strlen("cpu") + 1); strcpy(ccg->controller[0]->name,"cpu"); ccg->controller[0]->values[0] = (struct control_value *) calloc(1, sizeof(struct control_value)); strcpy(ccg->controller[0]->values[0]->name,"cpu.shares"); - ccg->controller[0]->values[0]->value = (char *)malloc(strlen("100") + 1); strcpy(ccg->controller[0]->values[0]->value, "100"); ccg->tasks_uid = tuid; ccg->tasks_gid = tgid; -- cgit