diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-09-30 13:19:25 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-30 13:19:25 +0900 |
commit | 21ce0b48f31a89001d903e379cd6abb8f31a525d (patch) | |
tree | f6cc45566538b4798da8e6984b19e9f725003d52 | |
parent | Merge branch 'mh/http-urlmatch-cleanup' (diff) | |
parent | commit: free the right buffer in release_commit_memory (diff) | |
download | tgif-21ce0b48f31a89001d903e379cd6abb8f31a525d.tar.xz |
Merge branch 'mh/release-commit-memory-fix'
Leakfix.
* mh/release-commit-memory-fix:
commit: free the right buffer in release_commit_memory
-rw-r--r-- | commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -364,8 +364,8 @@ struct object_id *get_commit_tree_oid(const struct commit *commit) void release_commit_memory(struct parsed_object_pool *pool, struct commit *c) { set_commit_tree(c, NULL); - c->index = 0; free_commit_buffer(pool, c); + c->index = 0; free_commit_list(c->parents); c->object.parsed = 0; |