Apparently this wasn't caught by the compiler because it was
initialized, and that counted as a "use".
Signed-off-by: Laine Stump <laine(a)laine.org>
---
src/dutil_linux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/dutil_linux.c b/src/dutil_linux.c
index 80c08f7..6442df4 100644
--- a/src/dutil_linux.c
+++ b/src/dutil_linux.c
@@ -399,7 +399,7 @@ void free_matches(int nint, char ***intf) {
/* Returns a list of all interfaces with MAC address MAC */
int aug_match_mac(struct netcf *ncf, const char *mac, char ***matches) {
int nmatches;
- char *path = NULL, *mac_lower = NULL;
+ char *mac_lower = NULL;
mac_lower = strdup(mac);
ERR_NOMEM(mac_lower == NULL, ncf);
@@ -428,7 +428,6 @@ int aug_match_mac(struct netcf *ncf, const char *mac, char ***matches)
{
error:
FREE(mac_lower);
- FREE(path);
return -1;
}
--
2.14.4