diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-12 20:49:28 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-12 20:49:28 +0200 |
commit | c4bd7d057c62037f6cda288082ac72b448951994 (patch) | |
tree | 4fa10bbb3e5d2e5214809b4db3416b18bbd4bc90 /src/e_externs_pipes.c | |
parent | FeelsCleanMan (diff) | |
download | 42-minishell-c4bd7d057c62037f6cda288082ac72b448951994.tar.gz 42-minishell-c4bd7d057c62037f6cda288082ac72b448951994.tar.bz2 42-minishell-c4bd7d057c62037f6cda288082ac72b448951994.tar.xz 42-minishell-c4bd7d057c62037f6cda288082ac72b448951994.tar.zst 42-minishell-c4bd7d057c62037f6cda288082ac72b448951994.zip |
Working builtins to pipes, ready to merge
Diffstat (limited to 'src/e_externs_pipes.c')
-rw-r--r-- | src/e_externs_pipes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/e_externs_pipes.c b/src/e_externs_pipes.c index 6c78029..e1518fa 100644 --- a/src/e_externs_pipes.c +++ b/src/e_externs_pipes.c @@ -55,6 +55,8 @@ static void { bu_id = get_builtin_id(ptr->bin, msh); ret = msh->bu_ptr[bu_id](ptr->argv + 1, msh); + s_line_clear(&msh->curr); + s_destroy(msh); exit(ret); } else |