summaryrefslogtreecommitdiff
path: root/src/user-awareness-users.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user-awareness-users.c')
-rw-r--r--src/user-awareness-users.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/user-awareness-users.c b/src/user-awareness-users.c
index 3404f3b..adf1bcd 100644
--- a/src/user-awareness-users.c
+++ b/src/user-awareness-users.c
@@ -513,6 +513,7 @@ int ua_user_clone(ua_user_h *dst, ua_user_h src)
user_dst->account = g_strdup(user_src->account);
if (!user_dst->account) {
/* LCOV_EXCL_START */
+ g_free(user_dst->name);
UA_ERR("g_malloc0 failed");
return UA_ERROR_OUT_OF_MEMORY;
/* LCOV_EXCL_STOP */
@@ -944,8 +945,6 @@ int ua_user_remove_device(ua_user_h user_handle, ua_device_h device_handle)
user = (ua_user_info_s *)handle;
/* LCOV_EXCL_STOP */
} else {
- UA_VALIDATE_HANDLE(user_handle, ua_users_list);
- retv_if((device->user != user_handle), UA_ERROR_INVALID_PARAMETER);
user = (ua_user_info_s *)user_handle;
}