diff -M: release the preimage candidate blobs after rename detection.
authorJunio C Hamano <junkio@cox.net>
Thu, 3 May 2007 20:04:53 +0000 (13:04 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 7 May 2007 22:54:32 +0000 (15:54 -0700)
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>
diffcore-rename.c
index 79030412dbf883147f35678505ad147dc9c240a8..93c40d9e04f35897b1ac2ad578db0c0972aacbc1 100644 (file)
@@ -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);