From 35b16b9cee480c70b002de9797e69b9fa76dba66 Mon Sep 17 00:00:00 2001 From: xor2003 Date: Fri, 17 Oct 2014 11:22:18 +0400 Subject: forgotten to free memory in pAdapterInfo --- toxcore/LAN_discovery.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toxcore/LAN_discovery.c') diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 3c05fe8d..ba372589 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c @@ -86,6 +86,10 @@ static void fetch_broadcast_info(uint16_t port) pAdapter = pAdapter->Next; } } + + if (pAdapterInfo) { + free(pAdapterInfo); + } } #elif defined(__linux__) -- cgit v1.2.3