summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/LAN_discovery.c4
1 files changed, 4 insertions, 0 deletions
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)
86 pAdapter = pAdapter->Next; 86 pAdapter = pAdapter->Next;
87 } 87 }
88 } 88 }
89
90 if (pAdapterInfo) {
91 free(pAdapterInfo);
92 }
89} 93}
90 94
91#elif defined(__linux__) 95#elif defined(__linux__)