diff options
Diffstat (limited to '')
-rw-r--r-- | src/b_exit.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/b_exit.c b/src/b_exit.c index 5384d25..8e912a6 100644 --- a/src/b_exit.c +++ b/src/b_exit.c @@ -23,7 +23,7 @@ uint8_t b_exit(char *args[], - t_msh *msh) + t_msh *msh) { uint8_t ret; const uint64_t argc = u_builtins_get_argc((const char**)args); @@ -41,8 +41,5 @@ uint8_t else ret = msh->ret; ft_dprintf(STDERR_FILENO, "exit\n"); - lcom_clear(&msh->curr); - s_destroy(msh); - exit(ret); - return (0); + return (ret); } |