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
5903da82
Commit
5903da82
authored
Oct 07, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
free cgroup_tasks_fn after use
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
9baa57bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cgroup.c
src/lxc/cgroup.c
+1
-0
No files found.
src/lxc/cgroup.c
View file @
5903da82
...
@@ -1020,6 +1020,7 @@ int lxc_cgroup_enter(struct cgroup_process_info *info, pid_t pid, bool enter_sub
...
@@ -1020,6 +1020,7 @@ int lxc_cgroup_enter(struct cgroup_process_info *info, pid_t pid, bool enter_sub
}
}
r
=
lxc_write_to_file
(
cgroup_tasks_fn
,
pid_buf
,
strlen
(
pid_buf
),
false
);
r
=
lxc_write_to_file
(
cgroup_tasks_fn
,
pid_buf
,
strlen
(
pid_buf
),
false
);
free
(
cgroup_tasks_fn
);
if
(
r
<
0
)
{
if
(
r
<
0
)
{
SYSERROR
(
"Could not add pid %lu to cgroup %s: internal error"
,
(
unsigned
long
)
pid
,
cgroup_path
);
SYSERROR
(
"Could not add pid %lu to cgroup %s: internal error"
,
(
unsigned
long
)
pid
,
cgroup_path
);
return
-
1
;
return
-
1
;
...
...
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