提交 fbf47592 编写于 作者: H Hongze Cheng

fix coredump

上级 0d2461a9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册