fix with_locals

This commit is contained in:
Skgland
2025-08-09 18:47:53 +02:00
committed by Bennet Bleßmann
parent edd6d44bd6
commit 7b2bf73ba1

View File

@@ -145,7 +145,7 @@ array_type(ElemType, Len, ArrayType) :-
with_locals(Locals, Goal) :-
verify_locals(Locals),
allocate_locals(Locals),
( catch(Goal, E, (deallocate(Locals), throw(E))) -> deallocate_locals(Locals)
( catch(Goal, E, (deallocate_locals(Locals), throw(E))) -> deallocate_locals(Locals)
; deallocate_locals(Locals), false
).