From 011ba7b455b844d86672d03cd575d2c06b8ad076 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 20 Aug 2013 17:41:29 +0200 Subject: [PATCH] Use freeifaddrs() to free data from getifaddrs(). Signed-off-by: Miroslav Lichvar --- sk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }