From e9f5f2ffcc62eee564d37d5776e701bab548a496 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Thu, 8 Jul 2021 21:22:06 +0000 Subject: Make the repl bindings and query global so the garbage collector can know about them --- garbage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'garbage.c') diff --git a/garbage.c b/garbage.c index 714520c..d2138d9 100644 --- a/garbage.c +++ b/garbage.c @@ -65,10 +65,14 @@ collectgarbage(void) 1) The modules 2) The goalstack 3) The choicestack + 4) The replbindings + 5) The replquery */ markmodules(); markgoalstack(goalstack); markchoicestack(); + markbindings(replbindings); + markterm(replquery); /* Free the allocations that were not marked as reachable */ for(i = 0; i < TableSize; i++){ -- cgit v1.2.3