Unverified Commit ff3f956a by Christian Brauner Committed by GitHub

Merge pull request #3784 from evverx/attach-memleak

tests: fix a memory leak in attach
parents c4142ec2 621c7cc7
......@@ -321,8 +321,7 @@ static struct lxc_container *test_ct_create(const char *lxcpath,
goto out1;
}
if (ct->is_defined(ct)) {
ct->stop(ct);
ct->destroy(ct);
test_ct_destroy(ct);
ct = lxc_container_new(name, lxcpath);
}
if (!ct->createl(ct, template, NULL, NULL, 0, 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