diff options
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 0a49dbace..ea1d826c9 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -249,6 +249,16 @@ void ndpi_report_payload_stats() { print_payload_stat(p); free(p->pattern); + + { + struct flow_id_stats *p1, *tmp1; + + HASH_ITER(hh, p->flows, p1, tmp1) { + HASH_DEL(p->flows, p1); + free(p1); + } + } + HASH_DEL(pstats, p); free(p); num++; |