Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 06:26:28 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 06:26:28 +0400
commitbd1e17e245153fdc75feaaf5e556b922d98ca699 (patch)
tree5ad114ffcf9ccb0220a1a59f7d747a4b88ffa394 /fsck-cache.c
parenta6f68d4767835d5720cff61785b93eaf99376241 (diff)
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 6ac122b71c..4050c17eb0 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)