mirror of
git://github.com/lxc/lxc
synced 2025-09-02 10:19:32 +00:00
tests: fix a memory leak in attach
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
This commit is contained in:
committed by
Christian Brauner
parent
257562c244
commit
b4ad57ae87
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user