[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>
This commit is contained in:

committed by
Linus Torvalds

parent
a00d7d106a
commit
226406f693
@ -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;
|
||||
|
Reference in New Issue
Block a user