fix invalid free
This commit is contained in:
parent
6838574c8f
commit
549f5983c0
|
@ -579,14 +579,13 @@ static int32_t sifExecLogic(SLogicConditionNode *node, SIFCtx *ctx, SIFParam *ou
|
||||||
|
|
||||||
if (ctx->noExec == false) {
|
if (ctx->noExec == false) {
|
||||||
for (int32_t m = 0; m < node->pParameterList->length; m++) {
|
for (int32_t m = 0; m < node->pParameterList->length; m++) {
|
||||||
// add impl later
|
|
||||||
if (node->condType == LOGIC_COND_TYPE_AND) {
|
if (node->condType == LOGIC_COND_TYPE_AND) {
|
||||||
taosArrayAddAll(output->result, params[m].result);
|
taosArrayAddAll(output->result, params[m].result);
|
||||||
taosArrayDestroy(params[m].result);
|
// taosArrayDestroy(params[m].result);
|
||||||
params[m].result = NULL;
|
// params[m].result = NULL;
|
||||||
} else if (node->condType == LOGIC_COND_TYPE_OR) {
|
} else if (node->condType == LOGIC_COND_TYPE_OR) {
|
||||||
taosArrayAddAll(output->result, params[m].result);
|
taosArrayAddAll(output->result, params[m].result);
|
||||||
params[m].result = NULL;
|
// params[m].result = NULL;
|
||||||
} else if (node->condType == LOGIC_COND_TYPE_NOT) {
|
} else if (node->condType == LOGIC_COND_TYPE_NOT) {
|
||||||
// taosArrayAddAll(output->result, params[m].result);
|
// taosArrayAddAll(output->result, params[m].result);
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,8 +120,9 @@ int transInitBuffer(SConnBuffer* buf) {
|
||||||
buf->total = 0;
|
buf->total = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int transDestroyBuffer(SConnBuffer* buf) {
|
int transDestroyBuffer(SConnBuffer* p) {
|
||||||
taosMemoryFree(buf->buf);
|
taosMemoryFree(p->buf);
|
||||||
|
p->buf = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,8 +240,6 @@ static void uvHandleReq(SSvrConn* pConn) {
|
||||||
transMsg.msgType = pHead->msgType;
|
transMsg.msgType = pHead->msgType;
|
||||||
transMsg.code = pHead->code;
|
transMsg.code = pHead->code;
|
||||||
|
|
||||||
// transClearBuffer(&pConn->readBuf);
|
|
||||||
|
|
||||||
pConn->inType = pHead->msgType;
|
pConn->inType = pHead->msgType;
|
||||||
if (pConn->status == ConnNormal) {
|
if (pConn->status == ConnNormal) {
|
||||||
if (pHead->persist == 1) {
|
if (pHead->persist == 1) {
|
||||||
|
|
Loading…
Reference in New Issue