From 226406f693013ea3eadab258cb5fc9d8e83df916 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 27 May 2005 15:50:30 -0700 Subject: [PATCH] Introduce diff_free_filepair() funcion. This introduces a new function to free a common data structure, and plugs some leaks. Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diffcore-pathspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diffcore-pathspec.c') diff --git a/diffcore-pathspec.c b/diffcore-pathspec.c index fd11822aaf..c460b2e56d 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; -- cgit 1.2.3-korg