Merge remote-tracking branch 'origin/bugfix/invalid-write' into hotfix/crash

This commit is contained in:
Shengliang Guan 2020-07-03 15:45:00 +08:00
commit 5626312673
2 changed files with 292 additions and 290 deletions

File diff suppressed because it is too large Load Diff

View File

@ -213,6 +213,8 @@ void cqDrop(void *handle) {
pObj->pStream = NULL;
cTrace("vgId:%d, id:%d CQ:%s is dropped", pContext->vgId, pObj->tid, pObj->sqlStr);
tdFreeSchema(pObj->pSchema);
free(pObj->sqlStr);
free(pObj);
pthread_mutex_unlock(&pContext->mutex);