summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO.org3
-rw-r--r--src/e_externs_pipes.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/TODO.org b/TODO.org
index 438ec57..0fac194 100644
--- a/TODO.org
+++ b/TODO.org
@@ -3,7 +3,8 @@
** DONE VISUAL=qweqwe crontab -e <=== deal with it
** DONE cd qweqwe <=== stderr
** DONE [#A] lpipes leaks <=== this is a big one (split lpipes | lcom | com)
-** TODO [#A] lpipes leaks on builtins
+** TODO [#C] fix that goddamn exit(2) 25 leak
+** TODO [#C] lpipes leaks on builtins (same as above man)
** TODO [#C] Handle memory
* Stuff to add
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