Skip to content

Commit

Permalink
lxccontainer: lxc_container_free()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Aug 23, 2018
1 parent de487bb commit 0a278fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -252,22 +252,28 @@ static void lxc_container_free(struct lxc_container *c)

free(c->configfile);
c->configfile = NULL;

free(c->error_string);
c->error_string = NULL;

if (c->slock) {
lxc_putlock(c->slock);
c->slock = NULL;
}

if (c->privlock) {
lxc_putlock(c->privlock);
c->privlock = NULL;
}

free(c->name);
c->name = NULL;

if (c->lxc_conf) {
lxc_conf_free(c->lxc_conf);
c->lxc_conf = NULL;
}

free(c->config_path);
c->config_path = NULL;

Expand Down

0 comments on commit 0a278fa

Please sign in to comment.