MEMO1-Local objects with unprotected calls to Free

Top  Previous  Next


Local objects with unprotected calls to Free (MEMO1)


This section reports locations where calls to Free (and FreeAndNil or Release) are not done in try-finally blocks. Failure to wrap a try-finally block around a memory deallocation could result in a memory leak. The report does not list locations in FormDestroy and FormClose events, because these are normally called when a form is destroyed. Neither does it report calls to Free from a finalization block. Also an object that is freed in a try-except block is not reported.



See also: