diff --git a/sk.c b/sk.c index 0437ad8..a13d14d 100644 --- a/sk.c +++ b/sk.c @@ -193,7 +193,7 @@ int sk_interface_addr(char *name, int family, uint8_t *addr, int len) break; } } - free(ifaddr); + freeifaddrs(ifaddr); return result; }