Merge pull request #956 from IvanNardi/leak

Fix memory leak reported in #955
This commit is contained in:
Luca Deri
2020-07-08 17:15:13 +02:00
committed by GitHub
+2 -2
View File
@@ -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
} }