[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
@ -361,11 +361,8 @@ void diffcore_rename(int detect_rename, int minimum_score)
|
||||
else
|
||||
pair_to_free = p;
|
||||
}
|
||||
if (pair_to_free) {
|
||||
diff_free_filespec_data(pair_to_free->one);
|
||||
diff_free_filespec_data(pair_to_free->two);
|
||||
free(pair_to_free);
|
||||
}
|
||||
if (pair_to_free)
|
||||
diff_free_filepair(pair_to_free);
|
||||
}
|
||||
diff_debug_queue("done copying original", &outq);
|
||||
|
||||
|
Reference in New Issue
Block a user