提交 1b47b35c 编写于 作者: D dapan1121

fix: memory protect issue

上级 945997f2
......@@ -225,6 +225,7 @@ static int32_t destroyDataSinker(SDataSinkHandle* pHandle) {
SDataDispatchBuf* pBuf = NULL;
taosReadQitem(pDispatcher->pDataBlocks, (void**)&pBuf);
if (pBuf != NULL) {
mprotect(pBuf->pData, pBuf->allocSize, PROT_READ|PROT_WRITE|PROT_EXEC);
taosMemoryFreeClear(pBuf->pData);
taosFreeQitem(pBuf);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册