Skip to content

Commit 11638c0

Browse files
committed
Don't access managed objects in finalizer
1 parent 78ad523 commit 11638c0

File tree

1 file changed

+1
-2
lines changed
  • src/shared/Microsoft.Git.CredentialManager/Interop

1 file changed

+1
-2
lines changed

src/shared/Microsoft.Git.CredentialManager/Interop/LibGit2.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public string GetRepositoryPath(string path)
9191

9292
protected override void ReleaseUnmanagedResources()
9393
{
94-
_trace.WriteLine("Shutting-down libgit2...");
9594
git_libgit2_shutdown();
9695
base.ReleaseUnmanagedResources();
9796
}
@@ -299,9 +298,9 @@ protected override void ReleaseUnmanagedResources()
299298
{
300299
unsafe
301300
{
302-
_trace.WriteLine("Disposing Git configuration...");
303301
git_config_free(_snapshot);
304302
git_config_free(_config);
303+
base.ReleaseUnmanagedResources();
305304
}
306305
}
307306
}

0 commit comments

Comments
 (0)