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.lorimer.id.au/gitweb.git/diff_plain/50b2b53897d6f0331c192f2964542ed62a9911c0?ds=inline;hp=-c 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 --- 50b2b53897d6f0331c192f2964542ed62a9911c0 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);