Merge "gdhcp: Don't send DHCPREQUEST if last assigned IP is Link Local Address" into...
authortaesub kim <taesub.kim@samsung.com>
Thu, 10 Mar 2016 01:50:10 +0000 (17:50 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 10 Mar 2016 01:50:10 +0000 (17:50 -0800)
plugins/bluetooth.c
src/iptables.c

index e1d4b59..24f3aa5 100755 (executable)
@@ -723,7 +723,7 @@ static bool tethering_create(const char *path,
                struct connman_technology *technology, const char *bridge,
                bool enabled)
 {
-       struct tethering_info *tethering = g_new0(struct tethering_info, 1);
+       struct tethering_info *tethering;
        GDBusProxy *proxy;
        const char *method;
        bool result;
@@ -737,6 +737,8 @@ static bool tethering_create(const char *path,
        if (!proxy)
                return false;
 
+       tethering = g_new0(struct tethering_info, 1);
+
        tethering->technology = technology;
        tethering->bridge = g_strdup(bridge);
        tethering->enable = enabled;
index 8d583ea..dd1b2e6 100755 (executable)
@@ -2364,8 +2364,10 @@ int __connman_iptables_iterate_chains(const char *table_name,
        struct connman_iptables *table;
 
        table = get_table(table_name);
-       if (!table)
+       if (!table) {
+               g_free(cbd);
                return -EINVAL;
+       }
 
        iterate_entries(table->blob_entries->entrytable,
                        table->info->valid_hooks,