Merge "Change g_waring to g_message" into tizen
[platform/upstream/connman.git] / plugins / ethernet.c
index aadfe89..9e15746 100644 (file)
@@ -27,6 +27,7 @@
 #include <net/if.h>
 #include <string.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
 #include <unistd.h>
 #include <stdio.h>
 
@@ -190,11 +191,12 @@ static void add_network(struct connman_device *device,
 
        if (connman_device_add_network(device, network) < 0) {
                connman_network_unref(network);
+               g_free(ifname);
                return;
        }
 
        if (!eth_tethering) {
-               char group[16] = "cable";
+               char group[25] = "cable";
                int vid, dsaport;
 
                vid = get_vlan_vid(ifname);