aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-11-04 00:20:26 +0100
committerLuca Deri <deri@ntop.org>2021-11-04 00:20:26 +0100
commit4173775b6032c825011e3daadedbc21cc06a0cf5 (patch)
tree4d2039d22577a9460a26f0570e5c57620142a5df /src/lib/ndpi_main.c
parenta8a3c6f7c2a479104efdc48db21c8d709b4fc5e5 (diff)
Improved BitTorrent detection
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 5573413ea..907cc019f 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -2685,6 +2685,9 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) {
if(ndpi_str->ookla_cache)
ndpi_lru_free_cache(ndpi_str->ookla_cache);
+ if(ndpi_str->bittorrent_cache)
+ ndpi_lru_free_cache(ndpi_str->bittorrent_cache);
+
if(ndpi_str->stun_cache)
ndpi_lru_free_cache(ndpi_str->stun_cache);