fix the crash while the num of http fds is zero

This commit is contained in:
slguan 2019-08-05 11:43:02 +08:00
parent 3caa833db0
commit 9d618b4e91
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ void httpCleanUpContext(HttpThread *pThread, HttpContext *pContext) {
pContext->signature = 0;
pContext->fd = -1;
pContext->pThread = 0;
pContext->prev = 0;
pContext->next = 0;
// avoid double free
httpFreeJsonBuf(pContext);