diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-08 21:22:06 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-08 21:22:06 +0000 |
commit | e9f5f2ffcc62eee564d37d5776e701bab548a496 (patch) | |
tree | a69763231838ce43e17579aa2f5c6ae2f08694e5 /garbage.c | |
parent | 6dd50f970be88637fd2799ae8e2868c01002898e (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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++){ |