diff options
author | xor2003 <xorrezerv2@list.ru> | 2014-10-17 11:22:18 +0400 |
---|---|---|
committer | xor2003 <xorrezerv2@list.ru> | 2014-10-17 11:22:18 +0400 |
commit | 35b16b9cee480c70b002de9797e69b9fa76dba66 (patch) | |
tree | 71245afa7881042377296667da2394ced60c37cb /toxcore | |
parent | 6114bd7f3ef1fda71e45e81f259074cf4f8e58eb (diff) |
forgotten to free memory in pAdapterInfo
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/LAN_discovery.c | 4 |
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__) |