summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorLidong Yan <502024330056@smail.nju.edu.cn>2025-06-05 06:27:26 +0000
committerJunio C Hamano <gitster@pobox.com>2025-06-05 08:35:22 -0700
commit61372dd613b1715af439a02129ea08a2c30e212e (patch)
treede9735ff8ba30446483857587f9c533a028fce96 /builtin/commit.c
parent0d42fbd9a1f30c63cf0359a1c5aaa77020972f72 (diff)
repo_logmsg_reencode: fix memory leak when use repo_logmsg_reencode ()
pretty.c:repo_logmsg_reencode() allocated memory should be freed with repo_unuse_commit_buffer(). Callers sometimes forgot free it at exit point. Add `repo_unuse_commit_buffer()` in insert_records_from_trailers at builtin/shortlog.c and create_commit at builtin/replay.c Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions