From 57b8617fa4d957c0cba69ec901f1af7b523d32a5 Mon Sep 17 00:00:00 2001 From: dengyihao Date: Thu, 4 Jun 2020 06:07:53 +0000 Subject: [PATCH] fix crash caused by double free when fail to initQInfo --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index cf63c3a078..f6c7863b84 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -5870,7 +5870,7 @@ _over: taosArrayDestroy(pTableIdList); if (code != TSDB_CODE_SUCCESS) { - tfree(*pQInfo); + //pQInfo already freed in initQInfo, but *pQInfo may not pointer to null; *pQInfo = NULL; } -- GitLab