TDbf memory leak
Summary
If a TDbf was not assigned a TableName, updating it's FieldDefs will create the TDbfFile, raise an exception, but will not free it.
System Information
- Operating system: Arch Linux
- Processor architecture: x86-64
- Compiler version: 3.3.1-10634-gdea81f4f60
- Device: Desktop computer
Steps to reproduce
Run the attached test project and click on button.
Possible fixes
Attached proposed patch.