Fix wrong error log 70/258670/1
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 24 May 2021 04:01:43 +0000 (13:01 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 24 May 2021 04:04:34 +0000 (13:04 +0900)
Change-Id: I14920e5dcb7d5eee2b2e925a2dd33993af45baf1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/aul_svc.cc

index 5441bc4..4f98330 100644 (file)
@@ -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<aul_svc_res_fn, void*> param { cbfunc, data };
   int ret = ::SendLaunchRequest<::SendLaunchRequestCb, ::CbInfo*>(