X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=diff.c;h=d24aaa304780b7105618434d80a76627e588d280;hb=e8882a87d9c479fd9d6e71a5840e949579304ab9;hp=863da896c00fafe0076377220f6e87e015f8d9a3;hpb=b37fd14beb39b9f545bd72e42e1bdbb00bad4b3d;p=thirdparty%2Fgit.git diff --git a/diff.c b/diff.c index 863da896c0..d24aaa3047 100644 --- a/diff.c +++ b/diff.c @@ -6763,8 +6763,11 @@ void diff_change(struct diff_options *options, return; if (options->flags.quick && options->skip_stat_unmatch && - !diff_filespec_check_stat_unmatch(options->repo, p)) + !diff_filespec_check_stat_unmatch(options->repo, p)) { + diff_free_filespec_data(p->one); + diff_free_filespec_data(p->two); return; + } options->flags.has_changes = 1; }