Merge pull request #5244 from taosdata/fix/TD-3031
[TD-3031]<fix>: fix NULL parser crash
This commit is contained in:
commit
c145eb6252
|
@ -154,7 +154,9 @@ void httpReleaseContext(HttpContext *pContext, bool clearRes) {
|
|||
}
|
||||
|
||||
if (clearRes) {
|
||||
httpClearParser(pContext->parser);
|
||||
if (pContext->parser) {
|
||||
httpClearParser(pContext->parser);
|
||||
}
|
||||
memset(&pContext->singleCmd, 0, sizeof(HttpSqlCmd));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue