userdiff: add xdiff_clear_find_func()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Wed, 1 Jul 2009 22:01:43 +0000 (00:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Jul 2009 02:16:37 +0000 (19:16 -0700)
commit8cfe5f1cd5dabc3a21bc792327747deefeff6dff
tree2b57a1e04baf5b62248845d0225d8b97c2285e61
parent725cf7b45da1f983fa1cbb0757b0e8855e5ac2de
userdiff: add xdiff_clear_find_func()

xdiff_set_find_func() is used to set user defined regular expressions
for finding function signatures.  Add xdiff_clear_find_func(), which
frees the memory allocated by the former, making the API complete.

Also, use the new function in diff.c (the only call site of
xdiff_set_find_func()) to clean up after ourselves.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
xdiff-interface.c
xdiff-interface.h