summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/LAN_discovery.c')
-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..436b16fd 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__)