From f49cedc1e8dea672740ee3fafd7672d66b7e712b Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 30 Oct 2023 22:58:17 +0100 Subject: Added missing freeaddrinfo() call --- src/lib/ndpi_main.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3