Commit 452c9141 by Serge Hallyn

coverity: close userns file when done

parent 32f4b9c7
......@@ -1396,8 +1396,10 @@ static inline bool enter_to_ns(struct lxc_container *c) {
if (setns(userns, CLONE_NEWUSER)) {
SYSERROR("failed to setns for CLONE_NEWUSER");
close(userns);
goto out;
}
close(userns);
}
/* Switch to new netns */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment