Memory should be reclaimed in tail calls.
Memory leak identified in https://github.com/mthom/scryer-prolog/pull/3381:
```prolog
?- [user].
a :- _X = "some useless data", a.
% this will leak memory even though _X is not needed for the recursive call
?- a.
^C error('$interrupt_thrown',repl/0).
```
1 条评论