summaryrefslogtreecommitdiff
path: root/diffcore-pathspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'diffcore-pathspec.c')
-rw-r--r--diffcore-pathspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-pathspec.c b/diffcore-pathspec.c
index fd11822..c460b2e 100644
--- a/diffcore-pathspec.c
+++ b/diffcore-pathspec.c
@@ -59,7 +59,7 @@ void diffcore_pathspec(const char **pathspec)
matches_pathspec(p->two->path, spec, speccnt))
diff_q(&outq, p);
else
- free(p);
+ diff_free_filepair(p);
}
free(q->queue);
*q = outq;