diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 9ed7a8f27..39443bec7 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2796,6 +2796,8 @@ static int ndpi_add_host_ip_subprotocol(struct ndpi_detection_module_struct *ndp break; } } + + freeaddrinfo(result); } if(!value_ready) { @@ -2820,6 +2822,8 @@ static int ndpi_add_host_ip_subprotocol(struct ndpi_detection_module_struct *ndp break; } } + + freeaddrinfo(result); } if(!value_ready) {