From: Changgyu Choi Date: Mon, 24 May 2021 04:01:43 +0000 (+0900) Subject: Fix wrong error log X-Git-Tag: accepted/tizen/unified/20210531.130357~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d982b25abb7e74cd88114733672a2e222868de2;p=platform%2Fcore%2Fappfw%2Faul-1.git Fix wrong error log Change-Id: I14920e5dcb7d5eee2b2e925a2dd33993af45baf1 Signed-off-by: Changgyu Choi --- diff --git a/src/aul_svc.cc b/src/aul_svc.cc index 5441bc4..4f98330 100644 --- a/src/aul_svc.cc +++ b/src/aul_svc.cc @@ -414,10 +414,11 @@ extern "C" API int aul_svc_run_service(bundle* b, int request_code, extern "C" API int aul_svc_run_service_for_uid(bundle* b, int request_code, aul_svc_res_fn cbfunc, void* data, uid_t uid) { CbInfo* cb_info = nullptr; - if (cbfunc) + if (cbfunc) { cb_info = new (std::nothrow) CbInfo(request_code, cbfunc, nullptr, data); - if (cb_info == nullptr) - LOGE("Out of memory"); + if (cb_info == nullptr) + LOGE("Out of memory"); + } std::tuple param { cbfunc, data }; int ret = ::SendLaunchRequest<::SendLaunchRequestCb, ::CbInfo*>(