From: Shawn O. Pearce Date: Fri, 25 Aug 2006 18:53:32 +0000 (-0400) Subject: Account for tree entry memory costs in fast-import. X-Git-Tag: v1.5.0-rc4~14^2~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8435a9cb2662ca4326e96ea78d58b9376fb21f7e;p=git.git Account for tree entry memory costs in fast-import. Signed-off-by: Shawn O. Pearce --- 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;