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
bd6741f8
Unverified
Commit
bd6741f8
authored
Jan 14, 2020
by
Christian Brauner
Committed by
GitHub
Jan 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3250 from lifeng68/fix_lxc
cgroup.c: fix memory leak at cgroup init failed
parents
6f6bd412
e2a8c0c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cgroup.c
src/lxc/cgroups/cgroup.c
+3
-1
No files found.
src/lxc/cgroups/cgroup.c
View file @
bd6741f8
...
@@ -31,9 +31,11 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf)
...
@@ -31,9 +31,11 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf)
if
(
!
cgroup_ops
)
if
(
!
cgroup_ops
)
return
log_error_errno
(
NULL
,
errno
,
"Failed to initialize cgroup driver"
);
return
log_error_errno
(
NULL
,
errno
,
"Failed to initialize cgroup driver"
);
if
(
cgroup_ops
->
data_init
(
cgroup_ops
))
if
(
cgroup_ops
->
data_init
(
cgroup_ops
))
{
cgroup_exit
(
cgroup_ops
);
return
log_error_errno
(
NULL
,
errno
,
return
log_error_errno
(
NULL
,
errno
,
"Failed to initialize cgroup data"
);
"Failed to initialize cgroup data"
);
}
TRACE
(
"Initialized cgroup driver %s"
,
cgroup_ops
->
driver
);
TRACE
(
"Initialized cgroup driver %s"
,
cgroup_ops
->
driver
);
...
...
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