From 8435a9cb2662ca4326e96ea78d58b9376fb21f7e Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 25 Aug 2006 14:53:32 -0400 Subject: Account for tree entry memory costs in fast-import. Signed-off-by: Shawn O. Pearce --- fast-import.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fast-import.c') diff --git a/fast-import.c b/fast-import.c index 1842d0738b..311db4e6d5 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; -- cgit v1.2.1