]> git.ipfire.org Git - thirdparty/lxc.git/commit
split up lxc_cgroup_load_meta2
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 24 Sep 2013 23:45:56 +0000 (18:45 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 25 Sep 2013 16:07:35 +0000 (11:07 -0500)
commitb653309a4aec9b0be859bc7fc23215fad07bdbb2
treeb41ebdafafa620c4b53ee0263b1d747a0c6a4a01
parent7cb14f34a92e0a8eae07db027344126bf5c901c9
split up lxc_cgroup_load_meta2

This one's easier to review by looking at the before and after files.  It
splits up lxc_cgroup_load_meta2() by adding 3 helpers.

The result seems easier to reason about.  A question I had, is, should
the kernel_subsystems ** be freed in the success case?  I assumed it was
being used elsewhere but I can't find where.  Currently it is only being
freed in the error case.  I suspect we want to free it in the success
case as well.

Cc: Christian Seiler <christian@iwakd.de>
Cc: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c