diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2020-07-08 11:30:39 +0200 |
---|---|---|
committer | Nardi Ivan <nardi.ivan@gmail.com> | 2020-07-08 11:30:39 +0200 |
commit | fd6a5bc1cdd3134e96a7c7d4a3c110f702e0d28f (patch) | |
tree | 9d8721826c24a7a06f45e668296237ccc3050461 /example/ndpiReader.c | |
parent | 5be9370cd2aec01568dcea44bea62c2f5bab83cc (diff) |
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
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++) { |