Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
b4ad57ae
Unverified
Commit
b4ad57ae
authored
Apr 10, 2021
by
Evgeny Vereshchagin
Committed by
Christian Brauner
Apr 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: fix a memory leak in attach
Signed-off-by:
Evgeny Vereshchagin
<
evvers@ya.ru
>
parent
257562c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
attach.c
src/tests/attach.c
+1
-2
No files found.
src/tests/attach.c
View file @
b4ad57ae
...
@@ -321,8 +321,7 @@ static struct lxc_container *test_ct_create(const char *lxcpath,
...
@@ -321,8 +321,7 @@ static struct lxc_container *test_ct_create(const char *lxcpath,
goto
out1
;
goto
out1
;
}
}
if
(
ct
->
is_defined
(
ct
))
{
if
(
ct
->
is_defined
(
ct
))
{
ct
->
stop
(
ct
);
test_ct_destroy
(
ct
);
ct
->
destroy
(
ct
);
ct
=
lxc_container_new
(
name
,
lxcpath
);
ct
=
lxc_container_new
(
name
,
lxcpath
);
}
}
if
(
!
ct
->
createl
(
ct
,
template
,
NULL
,
NULL
,
0
,
NULL
))
{
if
(
!
ct
->
createl
(
ct
,
template
,
NULL
,
NULL
,
0
,
NULL
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment