diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index facfb79352470a05bf323ea75d1003c25be1587e..429edc412e9ed624dbbd013aba242d1086057446 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -1530,9 +1530,9 @@ static void rpcDecRef(SRpcInfo *pRpc) { if (atomic_sub_fetch_32(&pRpc->refCount, 1) == 0) { taosHashCleanup(pRpc->hash); - taosTmrCleanUp(pRpc->tmrCtrl); taosIdPoolCleanUp(pRpc->idPool); rpcCloseConnCache(pRpc->pCache); + taosTmrCleanUp(pRpc->tmrCtrl); tfree(pRpc->connList); pthread_mutex_destroy(&pRpc->mutex);