提交 b407e72b 编写于 作者: L liangshenglin1 提交者: Gitee

fix memory double free when reclaim message parcel

Signed-off-by: Nliangshenglin <liangshenglin1@huawei.com>
上级 4a693a26
......@@ -1954,8 +1954,6 @@ napi_value NAPI_MessageParcel::JS_constructor(napi_env env, napi_callback_info i
status = napi_wrap(
env, thisVar, messageParcel,
[](napi_env env, void *data, void *hint) {
DBINDER_LOGI("NAPI_MessageParcel:%{public}p destructed by js callback", data);
delete (reinterpret_cast<NAPI_MessageParcel *>(data));
},
nullptr, nullptr);
NAPI_ASSERT(env, status == napi_ok, "napi wrap message parcel failed");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册