> On Jul 15, 2023, at 7:18 AM, Jonas Maebe via fpc-pascal 
> <fpc-pascal@lists.freepascal.org> wrote:
> 
> It also sets up an exception frame. FPC uses setjmp/longjmp for that, which 
> means that while restoring everything when an exception happens is fast, 
> saving the exception frame itself is relatively slow.

Ok so just to confirm does disabling   $IMPLICITEXCEPTIONS leak memory with ref 
counted types if a function exists early? For example:

===========================

{$implicitexceptions off}

procedure MyProcedure;
var
  s: AnsiString;
begin
  s := '1234';
  exit;
  // leaking??
end;

Regards,
Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to