Hello.
I parse a big data files and i catch a memory leak after TFLRE.Free() like this:

At Eureka mem leak log it's see like this:


I inspect, what count of execution of this block

is more, than count of execution of this block:

and i change free memory block to this code:
for State in AllStates do begin
if not Assigned(State) then
Continue;
SetLength(State^.SubMatches,0);
Finalize(State^);
FreeMem(State);
end;
FreeStates:=nil;
Memory leak is gone out. Does it's right decision?
Sorry for my bad English, it's not my native language.
Hello.
I parse a big data files and i catch a memory leak after TFLRE.Free() like this:
At Eureka mem leak log it's see like this:


I inspect, what count of execution of this block

is more, than count of execution of this block:
and i change free memory block to this code:
Memory leak is gone out. Does it's right decision?
Sorry for my bad English, it's not my native language.