userdiff: add xdiff_clear_find_func()
[git/git.git] / diff.c
diff --git a/diff.c b/diff.c
index 43835d7..892921c 100644 (file)
--- 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);
                        free(mf1.ptr);
                if (textconv_two)
                        free(mf2.ptr);
+               xdiff_clear_find_func(&xecfg);
        }
 
  free_ab_and_return:
        }
 
  free_ab_and_return: