aboutsummaryrefslogtreecommitdiff
path: root/fsck-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 19:26:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 19:26:28 -0700
commitbd1e17e245153fdc75feaaf5e556b922d98ca699 (patch)
tree5ad114ffcf9ccb0220a1a59f7d747a4b88ffa394 /fsck-cache.c
parenta6f68d4767835d5720cff61785b93eaf99376241 (diff)
downloadgit-bd1e17e245153fdc75feaaf5e556b922d98ca699.tar.gz
git-bd1e17e245153fdc75feaaf5e556b922d98ca699.tar.xz
Make "parse_object()" also fill in commit message buffer data.
And teach fsck to free it to save memory.
Diffstat (limited to 'fsck-cache.c')
-rw-r--r--fsck-cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fsck-cache.c b/fsck-cache.c
index 6ac122b71..4050c17eb 100644
--- a/fsck-cache.c
+++ b/fsck-cache.c
@@ -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)