fix coredump
This commit is contained in:
parent
0d2461a96c
commit
fbf47592fc
|
@ -118,7 +118,7 @@ TEST(vnodeApiTest, vnodeOpen_vnodeClose_test) {
|
|||
vnodeBuildReq(pBuf, &vCreateCTbReq, TSDB_MSG_TYPE_CREATE_TABLE);
|
||||
META_CLEAR_TB_CFG(&vCreateCTbReq);
|
||||
|
||||
taosArrayPush(pMsgs, pMsg);
|
||||
taosArrayPush(pMsgs, &(pMsg));
|
||||
}
|
||||
|
||||
vnodeProcessWMsgs(pVnode, pMsgs);
|
||||
|
|
|
@ -46,7 +46,7 @@ STQ* tqOpen(const char* path, STqCfg* tqConfig, TqLogReader* tqLogReader, SMemAl
|
|||
//TODO: memory error
|
||||
return NULL;
|
||||
}
|
||||
strcpy(pTq->path, path);
|
||||
pTq->path = strdup(path);
|
||||
pTq->tqConfig = tqConfig;
|
||||
pTq->tqLogReader = tqLogReader;
|
||||
// pTq->tqMemRef.pAlloctorFactory = allocFac;
|
||||
|
|
Loading…
Reference in New Issue