summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-12 16:39:51 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-12 17:26:32 -0800
commit2821104db7fabdfac105ae757228b0eac107047c (patch)
treefb827c04ddc2c38c6d31a5313fd2ddd91c477e9a /diffcore-rename.c
parentc06c79667c9514aed00d29bcd80bd0cee7cc5a25 (diff)
downloadgit-2821104db7fabdfac105ae757228b0eac107047c.tar.gz
diffcore-delta: make the hash a bit denser.
To reduce wasted memory, wait until the hash fills up more densely before we rehash. This reduces the working set size a bit further. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index b80b4320ff..ed99fe2cc0 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -307,8 +307,8 @@ void diffcore_rename(struct diff_options *options)
m->score = estimate_similarity(one, two,
minimum_score);
}
- free(two->cnt_data);
- two->cnt_data = NULL;
+ /* We do not need the text anymore */
+ diff_free_filespec_data(two);
dst_cnt++;
}
/* cost matrix sorted by most to least similar pair */