aboutsummaryrefslogtreecommitdiff
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-27 15:50:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-29 11:17:43 -0700
commit226406f693013ea3eadab258cb5fc9d8e83df916 (patch)
treec08246838de338afaad76cf758d5099395bae36d /diffcore-pickaxe.c
parenta00d7d106aa333c4b4d0095f58e05c0c4621bbc2 (diff)
downloadgit-226406f693013ea3eadab258cb5fc9d8e83df916.tar.gz
git-226406f693013ea3eadab258cb5fc9d8e83df916.tar.xz
[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 <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diffcore-pickaxe.c')
-rw-r--r--diffcore-pickaxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index fea62d51a..491900929 100644
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
@@ -49,7 +49,7 @@ void diffcore_pickaxe(const char *needle)
contains(p->two, needle, len))
diff_q(&outq, p);
if (onum == outq.nr)
- free(p);
+ diff_free_filepair(p);
}
free(q->queue);
*q = outq;