summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-09-16 19:49:04 +0200
committerGitHub <noreply@github.com>2017-09-16 19:49:04 +0200
commit212da30dbf18924cb8878348657a048698856be3 (patch)
tree48836a27da2ad9a99b8dbf9a6a05366d75073966
parentd378e3840dd00523e266c24bf6173a98fa139a00 (diff)
parent046b081ab52e5b3f04f0931728099f743ca5a924 (diff)
downloadlibgit2-212da30dbf18924cb8878348657a048698856be3.tar.gz
Merge pull request #4348 from pks-t/pks/win32-hash-memleak
diff: cleanup hash ctx in `git_diff_patchid`
-rw-r--r--src/diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index 895cdae68..b2a5ff947 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -517,5 +517,6 @@ int git_diff_patchid(git_oid *out, git_diff *diff, git_diff_patchid_options *opt
git_oid_cpy(out, &args.result);
out:
+ git_hash_ctx_cleanup(&args.ctx);
return error;
}