memoryleak: device name was not freed
authorJukka Rissanen <jukka.rissanen@nokia.com>
Fri, 31 Dec 2010 09:57:04 +0000 (11:57 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 31 Dec 2010 18:07:34 +0000 (10:07 -0800)
src/inet.c

index a98896c..4523f16 100644 (file)
@@ -459,6 +459,7 @@ struct connman_device *connman_inet_create_device(int index)
 
        if (__connman_element_device_isfiltered(devname) == TRUE) {
                connman_info("Ignoring interface %s (filtered)", devname);
+               g_free(devname);
                return NULL;
        }