changeset 111:20559e59878f

built-ins: Minor fixes, memory leaks
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 29 Aug 2019 22:27:24 +0200
parents dae58f4aa15e
children 1af6d03bdc82
files src/built-ins_test.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/built-ins_test.c	Thu Aug 29 22:24:59 2019 +0200
+++ b/src/built-ins_test.c	Thu Aug 29 22:27:24 2019 +0200
@@ -110,6 +110,7 @@
     yvec_destroy(&state.call_stack);
     yexpr_destroy(&program);
     ystr_destroy(&input);
+    yexpr_destroy(&result);
 }
 
 void test_builtin_let(void) {
@@ -178,6 +179,8 @@
 };
 
 void test_builtin_let_parsed(void) {
+    fprintf(stderr, "test_builtin_let_parsed ============\n");
+
     ystr_t input = ystr_new("(let my-var (1 2 3))"), error = ystr_new(NULL);
     yexpr_t program = yexpr_new(), *let_expr;
     assert(yparse_str(&input, &program, &error));
@@ -216,5 +219,6 @@
     test_builtin_for_noresult();
     test_builtin_let();
     test_builtin_let_parsed();
+    yvalue_free_all();
     return 0;
 }