diff --git a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp index 940f599c448413ab291344275d46ff19207f4951..f7620fbb4f1bcf1ced93385750c84f1b1a24fd22 100644 --- a/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp +++ b/services/distributeddataservice/service/data_share/common/rdb_delegate.cpp @@ -272,6 +272,7 @@ std::pair> RdbDelegate::Query(const std auto bridge = RdbDataShareAdapter::RdbUtils::ToResultSetBridge(resultSet); auto resultSetPtr = new (std::nothrow) DataShareResultSet(bridge); if (resultSetPtr == nullptr) { + ZLOGE("allocate mem for resultSet failed"); return std::make_pair(E_ERROR, nullptr); } auto result = std::shared_ptr(resultSetPtr, [callingPid, beginTime](auto p) {