fix invalid write & memory leak in stream test

This commit is contained in:
Bomin Zhang 2020-07-03 11:54:11 +08:00
parent a5a054d851
commit cc8ae36fa9
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);