]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgm_destroy: ignore a NULL d->cgroup_path
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 10 Mar 2014 16:59:08 +0000 (11:59 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 10 Mar 2014 22:33:20 +0000 (18:33 -0400)
commit044cf23995c3b332716d0a534871ad20627cbad6
tree63a5a84eacdc3175f4f7a77095f95e9a43eb66a8
parentb056374891cea240ec4feb03ee715965800c1848
cgm_destroy: ignore a NULL d->cgroup_path

Depending on where during container creation we failed, cgroup_path
may be NULL.  Don't try to delete the cgroup in that case.

(Also fix a wrong function name in an ERROR message)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c