From: Junio C Hamano Date: Thu, 3 May 2007 20:04:53 +0000 (-0700) Subject: diff -M: release the preimage candidate blobs after rename detection. X-Git-Tag: v1.5.2-rc3~12^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=50b2b53897d6f0331c192f2964542ed62a9911c0;p=git.git 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 --- diff --git a/diffcore-rename.c b/diffcore-rename.c index 79030412d..93c40d9e0 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);