Object created but not freed
eyebol checks code where an object local to a procedure is created but not freed. It does not consider global pointers.
For example:
Procedure CountRecs;
Var
Q:Tquery;
Begin
Q:=Tquery.Create(self);
...
End;
This should include code to free the local object :
Procedure CountRecs;
Var
Q:Tquery;
Begin
Q:=Tquery.Create(self);
...
Q.Free;
End;
< Back to list of hints and warnings
|