X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diffcore-rename.c;h=d6fd3cacd6de4757994c61903dd07e0c4d74a9e9;hb=c49904efb55172e8da0abdc8ba3222ce7507e936;hp=63ac998bfaf64da807bec0ae0bd57c391fb651fe;hpb=1d7d6ad539fabd49421d8ef7b27c0f287430bc7d;p=git.git diff --git a/diffcore-rename.c b/diffcore-rename.c index 63ac998bf..d6fd3cacd 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -523,10 +523,13 @@ void diffcore_rename(struct diff_options *options) this_src.dst = i; this_src.src = j; record_if_better(m, &this_src); + /* + * Once we run estimate_similarity, + * We do not need the text anymore. + */ diff_free_filespec_blob(one); + diff_free_filespec_blob(two); } - /* We do not need the text anymore */ - diff_free_filespec_blob(two); dst_cnt++; }