From efbd8641e302087dfca869582845bf0d930a7c61 Mon Sep 17 00:00:00 2001 From: li-li-wang Date: Fri, 25 Apr 2025 12:05:35 +0800 Subject: [PATCH] =?UTF-8?q?ai=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-li-wang --- .../security_component_service/sa/sa_main/sec_comp_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/security_component_service/sa/sa_main/sec_comp_manager.cpp b/services/security_component_service/sa/sa_main/sec_comp_manager.cpp index 15cbbbc..895ea42 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_manager.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_manager.cpp @@ -559,7 +559,8 @@ int32_t SecCompManager::ReportSecurityComponentClickEvent(SecCompInfo& info, con if (res != SC_OK) { return res; } - SecCompBase* report = SecCompInfoHelper::ParseComponent(sc->GetType(), compJson, message, true); + SecCompBase* reportComponentInfo = SecCompInfoHelper::ParseComponent(sc->GetType(), compJson, message, true); + std::shared_ptr report(reportComponentInfo); if (report == nullptr) { return SC_SERVICE_ERROR_COMPONENT_INFO_INVALID; } -- Gitee