diff --git a/services/ans/src/advanced_notification_live_view_service.cpp b/services/ans/src/advanced_notification_live_view_service.cpp index 55e622acbae760bbb4074aff060d9bf4f1e712db..ecc8f31518773327033aff836c59456b2c58979b 100644 --- a/services/ans/src/advanced_notification_live_view_service.cpp +++ b/services/ans/src/advanced_notification_live_view_service.cpp @@ -305,6 +305,7 @@ int32_t AdvancedNotificationService::GetNotificationRequestFromDb( } auto *bundleOption = NotificationJsonConverter::ConvertFromJson(jsonObject); if (bundleOption == nullptr) { + delete request; ANS_LOGE("Parse json string to bundle option failed, str: %{public}s.", value.c_str()); return ERR_ANS_TASK_ERR; }