Skip to content

Commit

Permalink
linux, mono: remove unneeded crun_error_release()
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Sjölund <[email protected]>
  • Loading branch information
eriksjolund committed Feb 1, 2025
1 parent a029af2 commit f7987aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/libcrun/handlers/mono.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ mono_configure_container (void *cookie arg_unused, enum handler_configure_phase
if (ret != 0)
return ret;

/* release any error if set since we are going to be returning from here */
crun_error_release (err);

return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions src/libcrun/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2181,8 +2181,6 @@ do_mounts (libcrun_container_t *container, int rootfsfd, const char *rootfs, con
{
if (errno != ENOTDIR)
return crun_make_error (err, errno, "cannot reopen `%s`", target);

crun_error_release (err);
}
}

Expand Down

0 comments on commit f7987aa

Please sign in to comment.