Skip to content

Commit 34c1e09

Browse files
committed
krun: avoid redundant crun_error_release() call
Signed-off-by: Erik Sjölund <[email protected]>
1 parent 53dee9d commit 34c1e09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcrun/container.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,10 @@ do_hooks (runtime_spec_schema_config_schema *def, pid_t pid, const char *id, boo
812812

813813
/* Release the error from the previous iteration, if any. */
814814
if (error_created)
815-
crun_error_release (err);
815+
{
816+
crun_error_release (err);
817+
error_created = false;
818+
}
816819

817820
ret = run_process_with_stdin_timeout_envp (hooks[i]->path, hooks[i]->args, cwd, hooks[i]->timeout, env,
818821
stdin, stdin_len, out_fd, err_fd, err);

0 commit comments

Comments
 (0)