Skip to content

Commit

Permalink
cgfsng: fix inverse null check
Browse files Browse the repository at this point in the history
remove the hierarchy if the fullcgpath is NOT null.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
hallyn committed Mar 11, 2016
1 parent ab8f542 commit e2db2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgfsng.c
Expand Up @@ -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;
Expand Down

0 comments on commit e2db2a8

Please sign in to comment.