aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-08-25 14:53:32 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-01-14 02:15:07 -0500
commit8435a9cb2662ca4326e96ea78d58b9376fb21f7e (patch)
tree86dec7e01a28090512349c74ac0f2c35b5565fe8 /fast-import.c
parent02f3389d9647378ed864ff1cdfb6f0238b64ee91 (diff)
downloadgit-8435a9cb2662ca4326e96ea78d58b9376fb21f7e.tar.gz
git-8435a9cb2662ca4326e96ea78d58b9376fb21f7e.tar.xz
Account for tree entry memory costs in fast-import.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index 1842d0738..311db4e6d 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -516,6 +516,7 @@ static struct tree_entry* new_tree_entry()
if (!avail_tree_entry) {
unsigned int n = tree_entry_alloc;
+ total_allocd += n * sizeof(struct tree_entry);
avail_tree_entry = e = xmalloc(n * sizeof(struct tree_entry));
while (n--) {
*((void**)e) = e + 1;