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>
This commit is contained in:
Junio C Hamano 2007-05-03 13:04:53 -07:00
parent 6e0b8ed6d3
commit 50b2b53897

View File

@ -329,6 +329,7 @@ void diffcore_rename(struct diff_options *options)
m->dst = i; m->dst = i;
m->score = estimate_similarity(one, two, m->score = estimate_similarity(one, two,
minimum_score); minimum_score);
diff_free_filespec_data(one);
} }
/* We do not need the text anymore */ /* We do not need the text anymore */
diff_free_filespec_data(two); diff_free_filespec_data(two);