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
This commit is contained in:
Nardi Ivan
2020-07-08 11:30:39 +02:00
parent 5be9370cd2
commit fd6a5bc1cd
+2 -2
View File
@@ -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
}