]> git.ipfire.org Git - thirdparty/git.git/commit
commit: free the right buffer in release_commit_memory
authorMike Hommey <mh@glandium.org>
Mon, 26 Aug 2019 02:01:37 +0000 (11:01 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 17:53:25 +0000 (10:53 -0700)
commit9784f9732165bf01c039d7fae2f0fba9bd06a015
tree8a761a1d0376abbf311ee7c76c6f11a9b71c61f7
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e
commit: free the right buffer in release_commit_memory

The index field in the commit object is used to find the buffer
corresponding to that commit in the buffer_slab. Resetting it first
means free_commit_buffer is not going to free the right buffer.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c