8000 Prevent memory leak on branch removal · apfunk/libgit2sharp@fd9a635 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd9a635

Browse files
committed
Prevent memory leak on branch removal
Actually, git_branch_delete() no longer frees the reference handle for the caller. We can now let the handle take care of this when it's disposed.
1 parent e1b6166 commit fd9a635

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

LibGit2Sharp/Core/Proxy.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public static void git_branch_delete(ReferenceSafeHandle reference)
163163
{
164164
int res = NativeMethods.git_branch_delete(reference);
165165
Ensure.ZeroResult(res);
166-
reference.SetHandleAsInvalid();
167166
}
168167
}
169168

0 commit comments

Comments
 (0)
0