We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb31e47 commit cdac507Copy full SHA for cdac507
ObjectiveGit/GTRepository.m
@@ -407,6 +407,10 @@ - (BOOL)enumerateBranchesWithType:(GTBranchType)type error:(NSError **)error usi
407
if (error) *error = [NSError git_errorFor:gitError description:@"Branch enumeration failed"];
408
return NO;
409
}
410
+
411
+ @onExit {
412
+ git_branch_iterator_free(iter);
413
+ };
414
415
git_branch_t branchType;
416
while ((gitError = git_branch_next(&gitRef, &branchType, iter)) == GIT_OK) {
0 commit comments