From 7e55813961d2727d9018bd02a33e1a8c3f2ad1c4 Mon Sep 17 00:00:00 2001 From: dengyihao Date: Tue, 9 Jun 2020 17:54:17 +0800 Subject: [PATCH] optimized code --- src/client/src/tscUtil.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 215b544639..2701d2b572 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -396,14 +396,12 @@ void tscPartiallyFreeSqlObj(SSqlObj* pSql) { if (pObj->signature == pObj) { pthread_mutex_lock(&pObj->mutex); tfree(pSql->sqlstr); - pSql->sqlstr = NULL; pthread_mutex_unlock(&pObj->mutex); } tscFreeSqlResult(pSql); tfree(pSql->pSubs); - pSql->pSubs = NULL; pSql->freed = 0; pSql->numOfSubs = 0; -- GitLab