diff --git a/services/bundlemgr_lite/src/bundle_res_transform.cpp b/services/bundlemgr_lite/src/bundle_res_transform.cpp index 322a6af0c5031aef04c871caf0b804424d0f5fa9..067ca99b9b7698d6945248a6888e3ac3c19507d6 100755 --- a/services/bundlemgr_lite/src/bundle_res_transform.cpp +++ b/services/bundlemgr_lite/src/bundle_res_transform.cpp @@ -163,6 +163,7 @@ bool BundleResTransform::ConvertDesResIdToBundleInfo(const std::string &path, ui if (!AbilityInfoUtils::SetAbilityInfoDescription(bundleInfo->abilityInfos + index, description)) { HILOG_ERROR(HILOG_MODULE_APP, "set description resId in abilityInfo fail!"); AdapterFree(description); + return false; } AdapterFree(description); return true;