From e2db2a89a888fbd6a6b3016da8ba99a42d0bfb5f Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 10 Mar 2016 20:40:47 -0800 Subject: [PATCH] cgfsng: fix inverse null check remove the hierarchy if the fullcgpath is NOT null. Signed-off-by: Serge Hallyn --- src/lxc/cgfsng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/cgfsng.c b/src/lxc/cgfsng.c index ea90903fe..a6767c520 100644 --- a/src/lxc/cgfsng.c +++ b/src/lxc/cgfsng.c @@ -1009,7 +1009,7 @@ static void cgfsng_destroy(void *hdata, struct lxc_conf *conf) int i; for (i = 0; d->hierarchies[i]; i++) { struct hierarchy *h = d->hierarchies[i]; - if (!h->fullcgpath) { + if (h->fullcgpath) { recursive_destroy(h->fullcgpath, conf); free(h->fullcgpath); h->fullcgpath = NULL; -- 2.47.2