Commit ccfacb8bb18e114716ca2034deb6d6b2873313c4

Edward Thomson 2016-03-31T10:43:57

leaks: call `xdl_free_classifier`

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xdiff/xprepare.c b/src/xdiff/xprepare.c
index 3183d50..13b55ab 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;