aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2024-10-08 10:41:53 +0200
committerGitHub <noreply@github.com>2024-10-08 10:41:53 +0200
commita01499ae5448c932ebde6c412c316c15e922787c (patch)
tree83635ca081453ed0ea5fb836ca342c06829947d6
parent89316ab4c0df6222125da1f8fa95bf1ee3a0d974 (diff)
TTL Cache Fix (#2582)
* Added missing free * Win fix
-rw-r--r--src/lib/ndpi_cache.c1
-rw-r--r--windows/src/ndpi_define.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ndpi_cache.c b/src/lib/ndpi_cache.c
index f375c019d..1efb99f6d 100644
--- a/src/lib/ndpi_cache.c
+++ b/src/lib/ndpi_cache.c
@@ -258,6 +258,7 @@ void ndpi_term_address_cache(struct ndpi_address_cache *cache) {
}
ndpi_free(cache->address_cache_root);
+ ndpi_free(cache);
}
/* ***************************************************** */
diff --git a/windows/src/ndpi_define.h b/windows/src/ndpi_define.h
index 1e16e2117..f03f41cb5 100644
--- a/windows/src/ndpi_define.h
+++ b/windows/src/ndpi_define.h
@@ -152,6 +152,7 @@
#define ndpi_min(a,b) ((a < b) ? a : b)
#define ndpi_max(a,b) ((a > b) ? a : b)
+#define NDPI_NUM_DEFAULT_ROOT_NODES 512
#define NDPI_IPSEC_PROTOCOL_ESP 50
#define NDPI_IPSEC_PROTOCOL_AH 51