From c960bb50f0fed78393f05bba4b05cd55a242d866 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 21 Sep 2022 10:27:46 +0200 Subject: Copilation fix --- src/lib/ndpi_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index d963b563f..9df6dfa6d 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3103,8 +3103,10 @@ void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_str) { ndpi_free(ndpi_str->proto_defaults[i].subprotocols); } +#ifdef HAVE_NBPF for(i = 0; (i < MAX_NBPF_CUSTOM_PROTO) && (ndpi_str->nbpf_custom_proto[i].tree != NULL); i++) nbpf_free(ndpi_str->nbpf_custom_proto[i].tree); +#endif /* NDPI_PROTOCOL_TINC */ if(ndpi_str->tinc_cache) -- cgit v1.2.3