Use free() instead of g_free() for things returned by index2*()
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 8 Oct 2009 02:01:59 +0000 (11:01 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 10 Oct 2009 12:34:47 +0000 (14:34 +0200)
Otherwise ElectricFence choked on them.

src/inet.c

index 9e84f67..4ced09b 100644 (file)
@@ -512,7 +512,7 @@ struct connman_device *connman_inet_create_device(int index)
 
        if (ident != NULL) {
                connman_device_set_ident(device, ident);
-               g_free(ident);
+               free(ident);
        }
 
        connman_device_set_string(device, "Address", addr);
@@ -520,8 +520,8 @@ struct connman_device *connman_inet_create_device(int index)
 done:
        g_free(devname);
        g_free(node);
-       g_free(name);
-       g_free(addr);
+       free(name);
+       free(addr);
 
        return device;
 }