Use freeifaddrs() to free data from getifaddrs().

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2013-08-20 17:41:29 +02:00 committed by Richard Cochran
parent 6bcda22752
commit 011ba7b455
1 changed files with 1 additions and 1 deletions

2
sk.c
View File

@ -193,7 +193,7 @@ int sk_interface_addr(char *name, int family, uint8_t *addr, int len)
break;
}
}
free(ifaddr);
freeifaddrs(ifaddr);
return result;
}