386398: Dynamic memory referenced by 'name' was allocated by calling function
'ua_service_get_name' at uat-service.c:85 and lost at uat-service.c:97.
Change-Id: I06a43c1699632465e05dfe04b104044631f4b1fc
Signed-off-by: Abhay agarwal <ay.agarwal@samsung.com>
if (UA_ERROR_NONE != ret) {
msg(" - ua_service_get_detection_threshold() ret: [0x%X] [%s]",
ret, uat_get_error_str(ret));
+ g_free(name);
return RET_SUCCESS;
}
msgb("[%d] %s ", ++g_service_count, name);
- msgb("presence threshold :[%d] absence threshold :[%d]",
+ msgb("presence threshold :[%d] absence threshold :[%d]",
presence_threshold, absence_threshold);
g_service_list = g_slist_append(g_service_list, service_handle);