Commit e2db2a89 by Serge Hallyn

cgfsng: fix inverse null check

remove the hierarchy if the fullcgpath is NOT null. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent ab8f5424
...@@ -1009,7 +1009,7 @@ static void cgfsng_destroy(void *hdata, struct lxc_conf *conf) ...@@ -1009,7 +1009,7 @@ static void cgfsng_destroy(void *hdata, struct lxc_conf *conf)
int i; int i;
for (i = 0; d->hierarchies[i]; i++) { for (i = 0; d->hierarchies[i]; i++) {
struct hierarchy *h = d->hierarchies[i]; struct hierarchy *h = d->hierarchies[i];
if (!h->fullcgpath) { if (h->fullcgpath) {
recursive_destroy(h->fullcgpath, conf); recursive_destroy(h->fullcgpath, conf);
free(h->fullcgpath); free(h->fullcgpath);
h->fullcgpath = NULL; h->fullcgpath = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment