Memory leak in DBTransaction using DBExpress adapter

Issue #156 wontfix
Eurides Baptistella created an issue

I have a memory leak in DBTransaction using the DBExpress adapter.

21 - 36 bytes: TTransactionItem x 1

Here is part of the trace

4069AE [System.pas][System][@GetMem$qqri][4189]
40885B [System.pas][System][TObject.NewInstance$qqrv][15174]
408FCA [System.pas][System][@ClassCreate$qqrpvzc][16486]
408948 [System.pas][System][TObject.$bctr$qqrv][15238]
680230 [Data.SqlExpr.pas][Data.SqlExpr][Sqlexpr.TSQLConnection.BeginTransaction$qqrrx29Data.Sqlexpr.TTransactionDesci][3462]
68033C [Data.SqlExpr.pas][Data.SqlExpr][Sqlexpr.TSQLConnection.BeginTransaction$qqri][3495]
41547E [FastMM4.pas][FastMM4][CalculateHeaderCheckSum$qqrp29Fastmm4.TFullDebugBlockHeader][8215]
41548D [FastMM4.pas][FastMM4][UpdateHeaderAndFooterCheckSums$qqrp29Fastmm4.TFullDebugBlockHeader][8225]
68015F [Data.SqlExpr.pas][Data.SqlExpr][Sqlexpr.TSQLConnection.BeginTransaction$qqrv][3422]
A0133D [Spring.Persistence.Adapters.DBX.pas][Spring.Persistence.Adapters.DBX][Persistence.Adapters.Dbx.TDBXConnectionAdapter.BeginTransaction$qqrv][181]
A70ABE [Spring.Persistence.Core.Session.pas][Spring.Persistence.Core.Session][Persistence.Core.Session.TSession.BeginTransaction$qqrv][301]

I'm using:

  • Delphi XE4
  • PostgreSQL 9.2
  • Driver DBXDevartPostgreSQL
  • DBExpress
  • Spring4D branche release/1.2

Full log file is attached
Code to simulate is attached

Comments (7)

  1. Eurides Baptistella reporter

    I can send a pull request with the suggestions to fix this problem. If you accept all right, they correct the problem...

  2. Log in to comment