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:
@@ -2470,9 +2470,9 @@ static void printFlowsStats() {
|
|||||||
printFlow(i+1, all_flows[i].flow, all_flows[i].thread_id);
|
printFlow(i+1, all_flows[i].flow, all_flows[i].thread_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifndef DIRECTION_BINS
|
#ifndef DIRECTION_BINS
|
||||||
if(bins && cluster_ids) {
|
if(bins && cluster_ids) {
|
||||||
|
#if 0
|
||||||
u_int8_t num_clusters = 8;
|
u_int8_t num_clusters = 8;
|
||||||
char buf[64];
|
char buf[64];
|
||||||
u_int j;
|
u_int j;
|
||||||
@@ -2494,10 +2494,10 @@ static void printFlowsStats() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
ndpi_free(bins);
|
ndpi_free(bins);
|
||||||
ndpi_free(cluster_ids);
|
ndpi_free(cluster_ids);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user