aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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