aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9dbf65c..427d316 100755
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,7 @@ void lsh_loop(SHELL_OB *shell_obj){
int i=0;
while(cmds[i]){
+ if(cmds[i]->out_dir!=NULL) free(cmds[i]->out_dir);
free(cmds[i]);
i++;
}