summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-05-03 13:04:53 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-05-07 15:54:32 -0700
commit50b2b53897d6f0331c192f2964542ed62a9911c0 (patch)
tree08ea3be1b5fe4934ecb76197effb9cc851e3df4b
parentdiff.c: do not use a separate "size cache". (diff)
downloadtgif-50b2b53897d6f0331c192f2964542ed62a9911c0.tar.xz
diff -M: release the preimage candidate blobs after rename detection.
We released the postimage candidate blobs after we are done to reduce memory pressure. Do the same for preimage candidate blobs. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--diffcore-rename.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 79030412db..93c40d9e04 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -329,6 +329,7 @@ void diffcore_rename(struct diff_options *options)
m->dst = i;
m->score = estimate_similarity(one, two,
minimum_score);
+ diff_free_filespec_data(one);
}
/* We do not need the text anymore */
diff_free_filespec_data(two);