summaryrefslogtreecommitdiff
path: root/garbage.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-08 21:22:06 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-08 21:22:06 +0000
commite9f5f2ffcc62eee564d37d5776e701bab548a496 (patch)
treea69763231838ce43e17579aa2f5c6ae2f08694e5 /garbage.c
parent6dd50f970be88637fd2799ae8e2868c01002898e (diff)
Make the repl bindings and query global so the garbage collector can know about them
Diffstat (limited to 'garbage.c')
-rw-r--r--garbage.c4
1 files changed, 4 insertions, 0 deletions
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++){