Minor fixes

Fix a memory leak and an issue (re)-introduced in configure script
This commit is contained in:
Nardi Ivan
2020-07-26 21:11:34 +02:00
parent 95263fc32e
commit 7d843f4d17
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -2529,11 +2529,12 @@ static void printFlowsStats() {
ndpi_free_bin(&centroids[i]);
ndpi_free(centroids);
ndpi_free(bins);
ndpi_free(cluster_ids);
}
}
if(bins)
ndpi_free(bins);
if(cluster_ids)
ndpi_free(cluster_ids);
#endif
}