8000 Explicitly dispose handle · crashsplash/libgit2sharp@d677741 · GitHub
[go: up one dir, main page]

Skip to content

Commit d677741

Browse files
committed
Explicitly dispose handle
1 parent a845db9 commit d677741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/RepositoryStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ internal RepositoryStatus(Repository repo, StatusOptions options)
5959
statusEntries = new List<StatusEntry>();
6060

6161
using (GitStatusOptions coreOptions = CreateStatusOptions(options ?? new StatusOptions()))
62+
using (StatusListSafeHandle list = Proxy.git_status_list_new(repo.Handle, coreOptions))
6263
{
63-
StatusListSafeHandle list = Proxy.git_status_list_new(repo.Handle, coreOptions);
6464
int count = Proxy.git_status_list_entrycount(list);
6565

6666
for (int i = 0; i < count; i++)

0 commit comments

Comments
 (0)
0