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
d35b372a
Unverified
Commit
d35b372a
authored
Jun 12, 2018
by
Donghwa Jeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attach: fix double free
Signed-off-by:
Donghwa Jeong
<
dh48.jeong@samsung.com
>
parent
2dce415b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
attach.c
src/lxc/attach.c
+1
-1
No files found.
src/lxc/attach.c
View file @
d35b372a
...
@@ -172,7 +172,6 @@ static void lxc_proc_put_context_info(struct lxc_proc_context_info *ctx)
...
@@ -172,7 +172,6 @@ static void lxc_proc_put_context_info(struct lxc_proc_context_info *ctx)
lxc_proc_close_ns_fd
(
ctx
);
lxc_proc_close_ns_fd
(
ctx
);
free
(
ctx
);
free
(
ctx
);
ctx
=
NULL
;
}
}
/**
/**
...
@@ -908,6 +907,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
...
@@ -908,6 +907,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
close
(
payload
->
ipc_socket
);
close
(
payload
->
ipc_socket
);
payload
->
ipc_socket
=
-
EBADF
;
payload
->
ipc_socket
=
-
EBADF
;
lxc_proc_put_context_info
(
init_ctx
);
lxc_proc_put_context_info
(
init_ctx
);
payload
->
init_ctx
=
NULL
;
/* The following is done after the communication socket is shut down.
/* The following is done after the communication socket is shut down.
* That way, all errors that might (though unlikely) occur up until this
* That way, all errors that might (though unlikely) occur up until this
...
...
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