Fix svace issues 72/316972/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.232058 accepted/tizen/unified/20240904.172658 accepted/tizen/unified/dev/20240910.111411 accepted/tizen/unified/toolchain/20241004.101858 accepted/tizen/unified/x/20240905.023707 accepted/tizen/unified/x/asan/20241014.000240 tizen_9.0_m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 2 Sep 2024 05:26:36 +0000 (14:26 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 2 Sep 2024 05:26:45 +0000 (14:26 +0900)
Change-Id: I01364c318a75f7b0f3a8998b42c8091e85c23e0a

packaging/capi-network-asp.spec
src/asp-client.cpp

index 737db33f011d5c5f2ebea582225303f825d54419..0ebc59eca94c386f54fe82bd1194492424644af4 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       capi-network-asp
 Summary:    An Application Service Platform(ASP) libraries in Native API
-Version:    0.1.22
+Version:    0.1.23
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index c8a7c28e2c4e5217d0ed8cb6452d1a1c45bb8568..1c733ea3a6ad514f71334c220a2973156bb96d45 100755 (executable)
@@ -948,12 +948,6 @@ int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service)
        RET_ERR_IF_PARAMETER_IS_NOT_VALID(adv_service, __ASP_LOG_FUNC_END__);
 
        AspAdvert *service = new AspAdvert;
-
-       if (!service) {
-               ASP_LOGE("malloc() failed!!!.");
-               __ASP_LOG_FUNC_END__;
-               return ASP_ERROR_OUT_OF_MEMORY;
-       }
        ASP_LOGD("service [%p]", service);
 
        if (instance_name) {
@@ -1953,10 +1947,6 @@ int asp_session_create(char *service_mac, unsigned int adv_id, asp_session_h* se
        }
 
        AspSession *service = new AspSession(service_mac, adv_id);
-       if (!service) {
-               __ASP_LOG_FUNC_END__;
-               return ASP_ERROR_OUT_OF_MEMORY;
-       }
 
        ASP_LOGD("service [%p]", service);
        addSessionToServiceList(service);
@@ -2359,11 +2349,6 @@ int asp_session_get_handle(char *session_mac, unsigned int session_id,
        __clear_asp_variant(variant);
 
        AspSession *service = new AspSession(session_mac, session_id, adv_id);
-       if (!service) {
-               ASP_LOGE("malloc() failed!!!.");
-               g_variant_unref(reply);
-               return ASP_ERROR_OUT_OF_MEMORY;
-       }
        ASP_LOGD("service [%p]", service);
 
        *session = service;