summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-31 10:43:57 -0400
committerEdward Thomson <ethomson@github.com>2016-03-31 10:43:57 -0400
commitc4aa5c042ce90eeaa9fe300febd5ed32f65519ce (patch)
tree0f4e054c28f791e9c9d586753ed15159b3096e9d
parent17442b28f9ba2dfa0fb596fe66c3a35847a8f606 (diff)
downloadlibgit2-c4aa5c042ce90eeaa9fe300febd5ed32f65519ce.tar.gz
leaks: call `xdl_free_classifier`
-rw-r--r--src/xdiff/xprepare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdiff/xprepare.c b/src/xdiff/xprepare.c
index 3183d50eb..13b55aba7 100644
--- a/src/xdiff/xprepare.c
+++ b/src/xdiff/xprepare.c
@@ -305,7 +305,7 @@ int xdl_prepare_env(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
return -1;
}
- if (XDF_DIFF_ALG((xpp->flags) & XDF_HISTOGRAM_DIFF))
+ if (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF)
xdl_free_classifier(&cf);
return 0;