Issue Details (XML | Word | Printable)

Key: LOG4NET-73
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nicko Cadell
Reporter: Nicko Cadell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

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

Created: 27/Mar/06 07:30 AM   Updated: 27/Mar/06 09:58 PM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Resolution Date: 27/Mar/06 09:58 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicko Cadell added a comment - 27/Mar/06 09:58 PM
Added code to cleanup the connection and command members if the InitialiseDatabaseConnection method is called multiple times.