Skip to content

Commit

Permalink
Merge pull request #3783 from evverx/cgpath-memleak2
Browse files Browse the repository at this point in the history
tests: fix a memory leak in cgpath
  • Loading branch information
Christian Brauner committed Apr 13, 2021
2 parents ca52b7f + f80950e commit c4142ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/cgpath.c
Expand Up @@ -180,6 +180,7 @@ static int test_container(const char *lxcpath, const char *name,
if (c->is_defined(c)) {
c->stop(c);
c->destroy(c);
lxc_container_put(c);
c = lxc_container_new(name, lxcpath);
}
c->set_config_item(c, "lxc.net.0.type", "empty");
Expand Down

0 comments on commit c4142ec

Please sign in to comment.