Merge branch 'ks/history-commit-leakfix'

The memory leak caused by not unusing the commit buffer returned by
repo_logmsg_reencode() during the rewording operation in 'git
history' has been plugged.

* ks/history-commit-leakfix:
  builtin/history: unuse the commit buffer after use
main
Junio C Hamano 2026-09-16 09:04:55 -07:00
commit d306f3f0d5
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ out:
free_commit_extra_headers(original_extra_headers);
strbuf_release(&commit_message);
free(original_author);
repo_unuse_commit_buffer(repo, commit_with_message, original_message);
return ret;
}