LL043
Exit in finally block
Object Pascal — Delphi & Free Pascal
Error
Reliability
Exit inside a finally block silently swallows any pending exception, masking failures
Exit inside a finally block silently swallows any pending exception, masking failures.
Why this severity
Exit inside a finally block silently swallows any pending exception, masking failures.
Known false positives
none expected; this pattern is almost always a defect.
Remediation example
finally CleanupResources; end; // place Exit after the try/finally if needed