mumble

A Lisp written in C, following the *Build Your Own Lisp* book
Log | Files | Refs | README

commit 2b8d8b89cfa62c9ee260f436827b494bd2147e69
parent 0049079be2255013051a2f654e3e8cb1eafe29d4
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Tue,  2 May 2023 10:11:27 -0400

feat: fix memory leak in join function.

Diffstat:
Mmumble | 0
Msrc/mumble.c | 2+-
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/mumble b/mumble Binary files differ. diff --git a/src/mumble.c b/src/mumble.c @@ -451,7 +451,7 @@ lispval* builtin_join(lispval* l) LISPVAL_ASSERT(temp->type == LISPVAL_QEXPR, "Error: function join not passed a q expression with other q-expressions"); for (int j = 0; j < temp->count; j++) { - lispval_append_child(result, temp->cell[j]); + lispval_append_child(result, clone_lispval(temp->cell[j])); } } return result;