From cf57c4a29ae12158c8a90e613aad76ce08fe4284 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 11 Aug 2018 20:29:08 -0700 Subject: [PATCH] Remove deliberate memory leak. It was used to test the GC. --- src/interactive.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/interactive.c b/src/interactive.c index 050af1b..ca59e16 100644 --- a/src/interactive.c +++ b/src/interactive.c @@ -217,7 +217,6 @@ libab_result loop(libab* ab, int interaction_count, libab_ref* scope) { int main() { libab_result result; libab_ref scope; - libab_ref test; libab ab; if (libab_init(&ab, impl_parse, impl_free) != LIBAB_SUCCESS) { @@ -231,8 +230,6 @@ int main() { } if(result == LIBAB_SUCCESS) { loop(&ab, INTERACTIONS, &scope); - libab_table_search_value(libab_ref_get(&scope), "test", &test); - printf("%p\n", libab_ref_get(&test)); libab_ref_free(&scope); }