aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-02-16 01:31:43 -0600
committericeyrazor <iceyrazor@mailfence.com>2026-02-16 01:31:43 -0600
commitc3df6bc56e3b7162b68e773be2d717ea0d5cba64 (patch)
treee197998e20395f24be5c140ec8f5f3cd0863b545 /src/main.c
parent9f6d634e9099bdcf392971195f50db85a38c4933 (diff)
quotes
- redid handle vars - redid ~ and vars - now parses quotes
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);
}