]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fast-import.c
Account for tree entry memory costs in fast-import.
[thirdparty/git.git] / fast-import.c
index 1842d0738bda3d7f368958a411427215035e24e6..311db4e6d52e9aeef69337001bced37518ae6882 100644 (file)
@@ -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;