mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 15:59:58 +00:00
commit
a8dc468dbe
@ -47,7 +47,9 @@ DBinderCallbackStub::DBinderCallbackStub(const std::string &service, const std::
|
||||
dbinderData_ = std::make_unique<uint8_t[]>(sizeof(dbinder_negotiation_data));
|
||||
if (dbinderData_ == nullptr) {
|
||||
ZLOGE(LOG_LABEL, "malloc dbinderData_ fail");
|
||||
return;
|
||||
}
|
||||
memset_s(dbinderData_.get(), sizeof(dbinder_negotiation_data), 0, sizeof(dbinder_negotiation_data));
|
||||
}
|
||||
|
||||
DBinderCallbackStub::~DBinderCallbackStub()
|
||||
|
@ -41,7 +41,9 @@ DBinderServiceStub::DBinderServiceStub(const std::string &service, const std::st
|
||||
dbinderData_ = std::make_unique<uint8_t[]>(sizeof(dbinder_negotiation_data));
|
||||
if (dbinderData_ == nullptr) {
|
||||
DBINDER_LOGW(LOG_LABEL, "malloc dbinderData_ fail");
|
||||
return;
|
||||
}
|
||||
memset_s(dbinderData_.get(), sizeof(dbinder_negotiation_data), 0, sizeof(dbinder_negotiation_data));
|
||||
}
|
||||
|
||||
DBinderServiceStub::~DBinderServiceStub()
|
||||
|
Loading…
Reference in New Issue
Block a user