From fd6a5bc1cdd3134e96a7c7d4a3c110f702e0d28f Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Wed, 8 Jul 2020 11:30:39 +0200 Subject: Fix memory leak reported in #955 This leak is clearly happening because of missing/disabled code in "bins" handling. This is a trivial workaround useful until such code is completed. In this way tavis-ci will stop complaining --- example/ndpiReader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 9d326376a..ce9187eac 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2470,9 +2470,9 @@ static void printFlowsStats() { printFlow(i+1, all_flows[i].flow, all_flows[i].thread_id); } -#if 0 #ifndef DIRECTION_BINS if(bins && cluster_ids) { +#if 0 u_int8_t num_clusters = 8; char buf[64]; u_int j; @@ -2494,10 +2494,10 @@ static void printFlowsStats() { } } +#endif ndpi_free(bins); ndpi_free(cluster_ids); } -#endif #endif } -- cgit v1.2.3