Don't leak memory in live capture mode

This commit is contained in:
Oleg A. Arkhangelsky
2019-10-29 21:11:31 +03:00
parent d2f04f5bdf
commit 9f5e5b90e5
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -1784,6 +1784,7 @@ static void node_idle_scan_walker(const void *node, ndpi_VISIT which, int depth,
undetected_flows_deleted = 1;
ndpi_free_flow_info_half(flow);
ndpi_free_flow_data_analysis(flow);
ndpi_thread_info[thread_id].workflow->stats.ndpi_flow_count--;
/* adding to a queue (we can't delete it from the tree inline ) */