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 usemain
commit
d306f3f0d5
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue