diff --git a/src/client/inc/tsclient.h b/src/client/inc/tsclient.h index e8278ea145c8308222aec6ae0dd342db115f8453..d04fa9900d1c4915fde7c181bad8cbe3d9dc0686 100644 --- a/src/client/inc/tsclient.h +++ b/src/client/inc/tsclient.h @@ -312,8 +312,6 @@ typedef struct SSqlObj { void (*fp)(); void (*fetchFp)(); void * param; - uint32_t ip; - short vnode; int64_t stime; uint32_t queryId; void * pStream; diff --git a/src/util/src/tsocket.c b/src/util/src/tsocket.c index c665ef9679fc0d830ea105512e5b3da5b8d07678..efdf7529608b272230f804437d71377f1fc6feea 100644 --- a/src/util/src/tsocket.c +++ b/src/util/src/tsocket.c @@ -32,6 +32,8 @@ int taosGetFqdn(char *fqdn) { uError("failed to get host name"); return -1; } + + free(h); } uint32_t taosGetIpFromFqdn(const char *fqdn) { diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index 03e508c5bf02f692e2616613d5bc60aa8526c804..2a7d133039616e7d77847e5478b38adaa39b9dc2 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -194,9 +194,10 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) { pVnode->wqueue = dnodeAllocateWqueue(pVnode); pVnode->rqueue = dnodeAllocateRqueue(pVnode); - SCqCfg cqCfg; + SCqCfg cqCfg = {0}; sprintf(cqCfg.user, "root"); strcpy(cqCfg.pass, tsInternalPass); + cqCfg.vgId = vnode; cqCfg.cqWrite = vnodeWriteToQueue; pVnode->cq = cqOpen(pVnode, &cqCfg);