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>
Junio C Hamano committed
May 3, 2007 at 13:04 UTC
50b2b53897d6f0331c192f2964542ed62a9911c0
1 file changed
+1
diffcore-rename.c
+1
@@ -329,6 +329,7 @@ void diffcore_rename(struct diff_options *options)
329
m->dst = i;
330
m->score = estimate_similarity(one, two,
331
minimum_score);
332
+ diff_free_filespec_data(one);
333
}
334
/* We do not need the text anymore */
335
diff_free_filespec_data(two);