提交 9d618b4e 编写于 作者: S slguan

fix the crash while the num of http fds is zero

上级 3caa833d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册