LL049
Resource leak
Object Pascal — Delphi & Free Pascal
Warning
Reliability
Objects created without a matching Free leak memory and OS handles
objects created without a matching Free leak memory and OS handles.
Why this severity
objects created without a matching Free leak memory and OS handles.
Known false positives
objects returned as function results or transferred to an owning container.
Remediation example
Stream := TFileStream.Create(Path, fmOpenRead); try ProcessStream(Stream); finally Stream.Free; end;