Remove and modify for some dbus policies
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-network.c
index c8256ec..43453cd 100644 (file)
@@ -112,6 +112,7 @@ BT_EXPORT_API int bluetooth_network_connect(const bluetooth_device_address_t *de
 
                if (dev_class.major_class == BLUETOOTH_DEVICE_MAJOR_CLASS_COMPUTER) {
                        BT_ERR("Reject a authorization due to MDM Policy");
+                       g_free(uuid);
                        return BLUETOOTH_ERROR_DEVICE_POLICY_RESTRICTION;
                }
        }