Browse Source

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>
maint
Junio C Hamano 18 years ago
parent
commit
50b2b53897
  1. 1
      diffcore-rename.c

1
diffcore-rename.c

@ -329,6 +329,7 @@ void diffcore_rename(struct diff_options *options) @@ -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);

Loading…
Cancel
Save