[TD-3031]<fix>: fix NULL parser crash
This commit is contained in:
parent
3d407ab587
commit
760b91094d
|
@ -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