[FB-Tracker] Created: (DNET-743) Memory leak in Firebird 3 on implicit transaction

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[FB-Tracker] Created: (DNET-743) Memory leak in Firebird 3 on implicit transaction

JIRA tracker@firebirdsql.org
Memory leak in Firebird 3 on implicit transaction

                 Key: DNET-743
                 URL: http://tracker.firebirdsql.org/browse/DNET-743
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions:
         Environment: Firebird:, .NET Provider: 5.8, .NET 4.6, Win 10 x64
            Reporter: Alexander Lipatov
            Assignee: Jiri Cincura

Implicit transactions in Firebird 3 cause a massive memory leak on the server part.
It is detected only on Firebird 3.
If transaction is performed manually the memory leak is not happened.

var connection = new FbConnection(connectionString);
while (true)
    using (var cmd = connection.CreateCommand())
        cmd.CommandText = "SELECT * FROM TABLE_NAME";

I fixed this issue as follows:
The calls isc_commit_transaction and isc_dsql_free_statement was swapped.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-net-provider mailing list
[hidden email]