Skip to content

Commit

Permalink
Fixed #609
Browse files Browse the repository at this point in the history
Fixed CloseConnection() leaks IDbConnection objects as reported in #609
  • Loading branch information
dodexahedron committed Feb 26, 2015
1 parent 7e7c5fb commit 8c8cd41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NLog/Targets/DatabaseTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ private void CloseConnection()
if (this.activeConnection != null)
{
this.activeConnection.Close();
this.activeConnection.Dispose();
this.activeConnection = null;
this.activeConnectionString = null;
}
Expand Down

0 comments on commit 8c8cd41

Please sign in to comment.