diff --git a/src/plugins/http/src/httpContext.c b/src/plugins/http/src/httpContext.c index ec898f51cc33e8801d81094c114600b88e8ed2ae..13f706af653e9c5c1b9fb0a4c602355b001d0cac 100644 --- a/src/plugins/http/src/httpContext.c +++ b/src/plugins/http/src/httpContext.c @@ -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)); }