Skip to content

Commit 212da30

Browse files
authored
Merge pull request libgit2#4348 from pks-t/pks/win32-hash-memleak
diff: cleanup hash ctx in `git_diff_patchid`
2 parents d378e38 + 046b081 commit 212da30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,5 +517,6 @@ int git_diff_patchid(git_oid *out, git_diff *diff, git_diff_patchid_options *opt
517517
git_oid_cpy(out, &args.result);
518518

519519
out:
520+
git_hash_ctx_cleanup(&args.ctx);
520521
return error;
521522
}

0 commit comments

Comments
 (0)