summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-03 13:04:53 -0700
committerJunio C Hamano <junkio@cox.net>2007-05-07 15:54:32 -0700
commit50b2b53897d6f0331c192f2964542ed62a9911c0 (patch)
tree08ea3be1b5fe4934ecb76197effb9cc851e3df4b /diffcore-rename.c
parent6e0b8ed6d35d0ed94b22652d6e8545b610cc43ab (diff)
downloadgit-50b2b53897d6f0331c192f2964542ed62a9911c0.tar.gz
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>
Diffstat (limited to 'diffcore-rename.c')
-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);