[PATCH] Rename/copy detection fix.
[git.git] / diffcore-pathspec.c
index 25ab9ed..4b7adc3 100644 (file)
@@ -55,7 +55,7 @@ void diffcore_pathspec(const char **pathspec)
                    matches_pathspec(p->two->path, spec, speccnt))
                        diff_q(&outq, p);
                else
-                       diff_free_filepair(p);
+                       free(p);
        }
        free(q->queue);
        *q = outq;