Merge pull request #2545 from taosdata/bugfix/invalid-write

fix invalid write & memory leak in stream test
This commit is contained in:
Shengliang Guan 2020-07-03 15:51:57 +08:00 committed by GitHub
commit 6e8c791770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);