riscv64: Add RISC-V to supported architectures
[platform/core/connectivity/bluetooth-agent.git] / ipsp-agent / bluetooth-ipsp-agent.c
index cd6f471..8ad155c 100644 (file)
@@ -709,6 +709,10 @@ static void __bt_ipsp_dbus_method(GDBusConnection *connection,
 
                __bt_ipsp_execute_dhcp6_server();
 
+               if (net_connection) {
+                       connection_destroy(net_connection);
+                       net_connection = NULL;
+               }
        } else if (g_strcmp0(method_name, "SetIpv6Addr") == 0) {
                int ret;
                BT_DBG("");
@@ -755,6 +759,8 @@ static void __bt_ipsp_dbus_method(GDBusConnection *connection,
                g_free(network_ipv6_address);
                g_free(remote_ipv6_address);
                g_free(network_interface);
+               g_free(ifname);
+               g_free(address);
        }
 
        BT_DBG("-");