mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
!1402 fix:Fix memory leak issues
Merge pull request !1402 from crazy_hu/master
This commit is contained in:
commit
7de75ad805
@ -926,6 +926,7 @@ int BinderInvoker::HandleReply(MessageParcel *reply, bool &isStubRet)
|
||||
auto allocator = new (std::nothrow) BinderAllocator();
|
||||
if (allocator == nullptr) {
|
||||
ZLOGE(LABEL, "create BinderAllocator object failed");
|
||||
FreeBuffer(reinterpret_cast<void *>(tr->data.ptr.buffer));
|
||||
return IPC_INVOKER_INVALID_DATA_ERR;
|
||||
}
|
||||
if (!reply->SetAllocator(allocator)) {
|
||||
|
Loading…
Reference in New Issue
Block a user