]> Repositorios git - scryer-prolog.git/commitdiff
fix with_locals
authorSkgland <[email protected]>
Sat, 9 Aug 2025 16:47:53 +0000 (18:47 +0200)
committerBennet Bleßmann <[email protected]>
Sun, 24 Aug 2025 17:56:24 +0000 (19:56 +0200)
src/lib/ffi.pl

index e3394ca5674aa5557a36215cb76f67679c436a49..ab981e82928121d4cc9257177b0534da9bf76454 100644 (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
     ).