Fix some memory leaks

This commit is contained in:
2026-01-28 14:54:15 -08:00
parent de43dfcda2
commit 76b28c1dc0
8 changed files with 51 additions and 2 deletions

View File

@ -31,6 +31,7 @@ DEFUN(cons, "cons", (LispVal * car, LispVal *cdr), "(car cdr)",
DEFUN(length, "length", (LispVal * list), "(list)", "") {
// TODO type check
// TODO list may be circular
return MAKE_FIXNUM(list_length(list));
}