Miroslav Lichvar
2013-08-20 15:41:29 UTC
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;
}
---
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
1.8.3.1