Rule suggestion - Free never called on object
Joined: 01 Dec 2017
Topic: Rule suggestion - Free never called on object
Posted: 01 Dec 2017 at 12:47am
Not sure if this is possible, but I just found a memory leak that might have been caught with static analysis :
FParameters := TList<IProjectParameter>.Create;
FParameters := nil; // << should be FParameters.Free;
I guess the rule could be defined as ".Free never called on object" ??
Just an idea.
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum