Discussion:
[Linuxptp-devel] [PATCH] Use freeifaddrs() to free data from getifaddrs().
Miroslav Lichvar
2013-08-20 15:41:29 UTC
Permalink
Signed-off-by: Miroslav Lichvar <***@redhat.com>
---
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;
}
--
1.8.3.1
Richard Cochran
2013-08-20 18:46:52 UTC
Permalink
Post by Miroslav Lichvar
---
sk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Applied.

Thanks,
Richard

Loading...