mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
!9458 [Bug]: 修复errorMsg指针问题
Merge pull request !9458 from liubinyu/fix_mem_leak
This commit is contained in:
@@ -1303,8 +1303,8 @@ CJUncaughtExceptionInfo MainThread::CreateCjExceptionInfo(const std::string &bun
|
||||
time_t timet;
|
||||
time(&timet);
|
||||
std::string errName = errorObj.name ? errorObj.name : "[none]";
|
||||
std::string errMsg = errorObj.name ? errorObj.message : "[none]";
|
||||
std::string errStack = errorObj.name ? errorObj.stack : "[none]";
|
||||
std::string errMsg = errorObj.message ? errorObj.message : "[none]";
|
||||
std::string errStack = errorObj.stack ? errorObj.stack : "[none]";
|
||||
HiSysEventWrite(OHOS::HiviewDFX::HiSysEvent::Domain::AAFWK, "CJ_ERROR",
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::FAULT,
|
||||
EVENT_KEY_PACKAGE_NAME, bundleName,
|
||||
|
||||
Reference in New Issue
Block a user