aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2009-07-02 00:01:43 +0200
committerJunio C Hamano <gitster@pobox.com>2009-07-01 19:16:37 -0700
commit8cfe5f1cd5dabc3a21bc792327747deefeff6dff (patch)
tree2b57a1e04baf5b62248845d0225d8b97c2285e61 /diff.c
parent725cf7b45da1f983fa1cbb0757b0e8855e5ac2de (diff)
downloadgit-8cfe5f1cd5dabc3a21bc792327747deefeff6dff.tar.gz
git-8cfe5f1cd5dabc3a21bc792327747deefeff6dff.tar.xz
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>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index 43835d756..892921cdc 100644
--- a/diff.c
+++ b/diff.c
@@ -1603,6 +1603,7 @@ static void builtin_diff(const char *name_a,
free(mf1.ptr);
if (textconv_two)
free(mf2.ptr);
+ xdiff_clear_find_func(&xecfg);
}
free_ab_and_return: