]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index 863da896c00fafe0076377220f6e87e015f8d9a3..d24aaa304780b7105618434d80a76627e588d280 100644 (file)
--- 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;
 }