diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-07-08 17:15:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 17:15:13 +0200 |
commit | f72b402aa2c5e532caba8452056c17a3d08e5a31 (patch) | |
tree | 901fcf4f17692043eb1b29de04a781f5d31ea447 /example/ndpiReader.c | |
parent | 4f794aec22a73d4b06f42c7472460226f990c8b6 (diff) | |
parent | fd6a5bc1cdd3134e96a7c7d4a3c110f702e0d28f (diff) |
Merge pull request #956 from IvanNardi/leak
Fix memory leak reported in #955
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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,11 +2494,11 @@ static void printFlowsStats() { } } +#endif ndpi_free(bins); ndpi_free(cluster_ids); } #endif -#endif } for(thread_id = 0; thread_id < num_threads; thread_id++) { |