View Issue Details

IDProjectCategoryView StatusLast Update
0037852FPCDatabasepublic2020-11-08 18:05
ReporterBruno Siqueira Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86-x64OSWindows 64 
Product Version3.0.4 
Fixed in Version3.3.1 
Summary0037852: TFBAdmin.Destroy causes a memory leak if Firebird is terminated.
DescriptionHi,

During tests in one of the applications I work on, we found a situation where the TFBAdmin.Destroy method causes a memory leak.

Possible cause:

In the "Destroy" method, there is a call to the "Disconnect" method and this in turn can raise an exception within "CheckError ('DisConnect', FStatus)". As a result, the rest of the Destroy method is not executed.
Steps To Reproduce1 - With the property "TFBAdmin.UseExceptions: = True", connect to the firebird server;
2 - Shut down the Firebird service;
3 - Try to destroy the TFBAdmin object (TFBAdmin.Free) and close the application.
Additional InformationPossible solution:

Along with the example project, I send a patch with the changes that solved the problems in our tests.
TagsNo tags attached.
Fixed in Revision47343
FPCOldBugId
FPCTarget3.2.2
Attached Files

Activities

Bruno Siqueira

2020-10-02 00:56

reporter  

FBAdminBug.zip (144,720 bytes)

Michael Van Canneyt

2020-11-08 18:05

administrator   ~0126799

Thank you, I applied a patch as you suggested. Thank you for reporting !

Issue History

Date Modified Username Field Change
2020-10-02 00:56 Bruno Siqueira New Issue
2020-10-02 00:56 Bruno Siqueira File Added: FBAdminBug.zip
2020-10-02 10:19 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-10-02 10:19 Michael Van Canneyt Status new => assigned
2020-11-08 18:05 Michael Van Canneyt Status assigned => resolved
2020-11-08 18:05 Michael Van Canneyt Resolution open => fixed
2020-11-08 18:05 Michael Van Canneyt Fixed in Version => 3.3.1
2020-11-08 18:05 Michael Van Canneyt Fixed in Revision => 47343
2020-11-08 18:05 Michael Van Canneyt FPCTarget => 3.2.2
2020-11-08 18:05 Michael Van Canneyt Note Added: 0126799