commit c9029179b22ae349631ca04db03e16a3fe98b1a5
Author: sin <[email protected]>
Date:   Thu Sep 4 15:11:24 2014 +0100

    Remember to call freeifaddrs()
    
    Change return value to void.

diff --git a/smdev.c b/smdev.c
index a3194da..51a19d6 100644
--- a/smdev.c
+++ b/smdev.c
@@ -61,7 +61,7 @@ static int createdev(struct event *ev);
 static int doevent(struct event *ev);
 static int craftev(char *sysfspath);
 static void populatedev(const char *path);
-static int ifrename(void);
+static void ifrename(void);
 
 static void
 usage(void)
@@ -396,7 +396,7 @@ populatedev(const char *path)
        }
 }
 
-static int
+static void
 ifrename(void)
 {
        struct ifaddrs *ifas, *ifa;
@@ -430,7 +430,7 @@ ifrename(void)
                        }
                }
        }
-
+       freeifaddrs(ifas);
        close(sd);
        return 0;
 }


Reply via email to