aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 15830ac..262c504 100755
--- a/src/main.c
+++ b/src/main.c
@@ -29,6 +29,9 @@ void lsh_loop(SHELL_OB *shell_obj)
status = lsh_execute(args);
free(line);
+ int i=0;
+ while (args[i])
+ free(args[i++]);
free(args);
} while (status);
}