Skip to content

Commit

Permalink
execute: fix resource leak
Browse files Browse the repository at this point in the history
CID#1431998

(cherry picked from commit 41abd7f)
Related: #2087652
  • Loading branch information
sshedi authored and mrc0mmand committed Jun 13, 2022
1 parent e37615e commit 5d3c97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,7 @@ static int apply_mount_namespace(
/* Symlinks for exec dirs are set up after other mounts, before they are made read-only. */
r = compile_symlinks(context, params, &symlinks);
if (r < 0)
return r;
goto finalize;

needs_sandboxing = (params->flags & EXEC_APPLY_SANDBOXING) && !(command_flags & EXEC_COMMAND_FULLY_PRIVILEGED);
if (needs_sandboxing) {
Expand Down

0 comments on commit 5d3c97f

Please sign in to comment.