summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-12 15:07:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-12 15:07:22 +0200
commit477ea057edf32486e944ef4e33023e9ab6636e07 (patch)
treee8d6996c27b5bb6fde380eadea0c751bb9c2e117 /src/e_builtins.c
parenthow tf will I norm this (diff)
download42-minishell-477ea057edf32486e944ef4e33023e9ab6636e07.tar.gz
42-minishell-477ea057edf32486e944ef4e33023e9ab6636e07.tar.bz2
42-minishell-477ea057edf32486e944ef4e33023e9ab6636e07.tar.xz
42-minishell-477ea057edf32486e944ef4e33023e9ab6636e07.tar.zst
42-minishell-477ea057edf32486e944ef4e33023e9ab6636e07.zip
Aliases work, fucker
Diffstat (limited to 'src/e_builtins.c')
-rw-r--r--src/e_builtins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c
index fb7b0ba..7c86a5f 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -21,6 +21,7 @@
#include "b_export_mute.h"
#include "m_loop.h"
#include "m_redirs.h"
+#include "s_com.h"
#include "s_destroy.h"
#include "s_line.h"
#include "s_struct.h"
@@ -66,7 +67,6 @@ static void
int32_t status;
int32_t ret;
- (void)ptr;
while (wait(&status) != pid)
;
ret = WEXITSTATUS(status);
@@ -83,6 +83,7 @@ static void
{
if (msh->fd == STDIN_FILENO)
m_dump_hist(msh);
+ s_com_destroy(&msh->com);
s_line_clear(&msh->curr);
s_destroy(msh);
exit(ret);