Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-73

ADONetAppender.ActivateOptions() leaks database connection when called multiple times

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: Appenders
    • Labels:
      None

      Description

      ADONetAppender.ActivateOptions() calls InitializeDatabaseConnection. This method does not check if the m_dbConnection is already initialised. If it is initialise then it will beleaked.

      Update InitializeDatabaseConnection to check and close the connection if not null.

        Activity

        Hide
        nicko Nicko Cadell added a comment -

        Added code to cleanup the connection and command members if the InitialiseDatabaseConnection method is called multiple times.

        Show
        nicko Nicko Cadell added a comment - Added code to cleanup the connection and command members if the InitialiseDatabaseConnection method is called multiple times.

          People

          • Assignee:
            nicko Nicko Cadell
            Reporter:
            nicko Nicko Cadell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development