]> 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 17:02:58 +0000 (13:02 -0400)
commitba3f32cf15d4911fecfd69a01fcbcc1f5c5b9535
tree2a0283aa629ca1769eaa7bec0e96ecf0327c74c5
parent1efaeac9ae20212253bcbf7b143496fd86a3e0f5
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