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
This commit is contained in:
commit
d306f3f0d5
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user