diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 19:26:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 19:26:28 -0700 |
commit | bd1e17e245153fdc75feaaf5e556b922d98ca699 (patch) | |
tree | 5ad114ffcf9ccb0220a1a59f7d747a4b88ffa394 /fsck-cache.c | |
parent | a6f68d4767835d5720cff61785b93eaf99376241 (diff) | |
download | git-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.c | 2 |
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) |