diff options
author | saerome.kim <saerome.kim@samsung.com> | 2019-10-02 15:07:58 +0900 |
---|---|---|
committer | saerome.kim <saerome.kim@samsung.com> | 2019-10-02 16:33:31 +0900 |
commit | 01fa75da97a96bc8783b027f4a5b056119ca8060 (patch) | |
tree | cfdd26cbb7a125c127f12857cd9b2249b1434cae /include | |
parent | b548f28c1106996fc997b261f2edc1367a887587 (diff) | |
download | user-awareness-01fa75da97a96bc8783b027f4a5b056119ca8060.tar.gz user-awareness-01fa75da97a96bc8783b027f4a5b056119ca8060.tar.bz2 user-awareness-01fa75da97a96bc8783b027f4a5b056119ca8060.zip |
Fixed coverity issuessubmit/tizen/20191002.073539accepted/tizen/unified/20191004.003621
1087645 leaked_storage: Variable sensor_info going out of scope leaks the
storage it points to
1087646 var_deref_model: Passing null pointer sensor_info to
__send_sensor_presence_event, which dereferences it.
1087649 leaked_storage: Variable sensor_info going out of scope leaks the
storage it points to
Change-Id: I7c5a080c876c2f43ac3b6ab4fde008bba97894fd
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--] | include/user-awareness-util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/user-awareness-util.h b/include/user-awareness-util.h index 0fc4555..1534e60 100644..100755 --- a/include/user-awareness-util.h +++ b/include/user-awareness-util.h @@ -241,6 +241,24 @@ int ua_sensor_get_by_sensor_info( ua_sensor_info_s *sensor_info, ua_sensor_h * sensor_handle); +/** + * @ingroup CAPI_NETWORK_UA_MODULE + * @brief Releases sensor info. + * @since_tizen 5.5 + * + * @param[in] sensor_info The sensor information to be freed. + * + * @return 0 on success, otherwise a negative error value + * @retval #UA_ERROR_NONE Successful + * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter + * + * @exception + * @pre + * @post + * + */ +int _ua_free_sensor_info(ua_sensor_info_s *sensor_info); + #ifdef __cplusplus } #endif |