diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2017-09-16 19:49:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-16 19:49:04 +0200 |
commit | 212da30dbf18924cb8878348657a048698856be3 (patch) | |
tree | 48836a27da2ad9a99b8dbf9a6a05366d75073966 | |
parent | d378e3840dd00523e266c24bf6173a98fa139a00 (diff) | |
parent | 046b081ab52e5b3f04f0931728099f743ca5a924 (diff) | |
download | libgit2-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.c | 1 |
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; } |