Fix bt-service crash issue on testhub 94/235894/1
authorWootak Jung <wootak.jung@samsung.com>
Thu, 11 Jun 2020 00:24:11 +0000 (09:24 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 11 Jun 2020 00:24:11 +0000 (09:24 +0900)
user_data will be freed in _bt_free_info_from_invocation_list

Change-Id: I43b84fd007ae7786d6b14140109a969736a04059
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service-adaptation/services/bt-request-handler.c

index d318f99..f5b62e1 100644 (file)
@@ -669,7 +669,7 @@ int __bt_bluez_request(int function_name,
                if (result == BLUETOOTH_ERROR_NONE) {
                        sender = (char*)g_dbus_method_invocation_get_sender(context);
                        _bt_save_invocation_context(context, result, sender,
-                                       function_name, (gpointer)uuid);
+                                       function_name, g_strdup(uuid));
                }
                break;
        }