From 7d982b25abb7e74cd88114733672a2e222868de2 Mon Sep 17 00:00:00 2001 From: Changgyu Choi Date: Mon, 24 May 2021 13:01:43 +0900 Subject: [PATCH] Fix wrong error log Change-Id: I14920e5dcb7d5eee2b2e925a2dd33993af45baf1 Signed-off-by: Changgyu Choi --- src/aul_svc.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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*>( -- 2.7.4