Unverified Commit c4142ec2 by Christian Brauner Committed by GitHub

Merge pull request #3783 from evverx/cgpath-memleak2

tests: fix a memory leak in cgpath
parents ca52b7ff f80950ee
......@@ -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");
......
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