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 14, 2022
1 parent 4a5ac40 commit 0188e88
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 0188e88

Please sign in to comment.