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

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>