Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mh/release-commit-memory-fix'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Sep 2019 04:19:25 +0000
(13:19 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Sep 2019 04:19:25 +0000
(13:19 +0900)
Leakfix.
* mh/release-commit-memory-fix:
commit: free the right buffer in release_commit_memory
commit.c
patch
|
blob
|
history
raw
(from parent 1:
f0fcab6
)
diff --git
a/commit.c
b/commit.c
index a98de16e3d570e09696a844b018bd4d580d9a30e..3fe5f8fa9c6e95e966bbebca3159e24595e1ee48 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-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;