Make "parse_object()" also fill in commit message buffer data.

And teach fsck to free it to save memory.
This commit is contained in:
Linus Torvalds
2005-05-25 19:26:28 -07:00
parent a6f68d4767
commit bd1e17e245
3 changed files with 7 additions and 1 deletions

View File

@ -203,6 +203,8 @@ static int fsck_tree(struct tree *item)
static int fsck_commit(struct commit *commit)
{
free(commit->buffer);
commit->buffer = NULL;
if (!commit->tree)
return -1;
if (!commit->parents && show_root)