Merge pull request #5244 from taosdata/fix/TD-3031

[TD-3031]<fix>: fix NULL parser crash
This commit is contained in:
Shengliang Guan 2021-02-23 09:37:24 +08:00 committed by GitHub
commit c145eb6252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ void httpReleaseContext(HttpContext *pContext, bool clearRes) {
}
if (clearRes) {
if (pContext->parser) {
httpClearParser(pContext->parser);
}
memset(&pContext->singleCmd, 0, sizeof(HttpSqlCmd));
}