Account for tree entry memory costs in fast-import.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
02f3389d96
commit
8435a9cb26
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user