修正执行替换动作时,连接未结束释放pangu_http上下文double-free替换应答上下文的问题
This commit is contained in:
@@ -566,12 +566,7 @@ void http_repl_ctx_free(struct replace_ctx* rep_ctx)
|
|||||||
evbuffer_free(rep_ctx->http_body);
|
evbuffer_free(rep_ctx->http_body);
|
||||||
rep_ctx->http_body = NULL;
|
rep_ctx->http_body = NULL;
|
||||||
}
|
}
|
||||||
//On session recycled.
|
|
||||||
if(rep_ctx->replacing)
|
|
||||||
{
|
|
||||||
tfe_http_half_free(rep_ctx->replacing);
|
|
||||||
rep_ctx->replacing=NULL;
|
|
||||||
}
|
|
||||||
FREE(&rep_ctx);
|
FREE(&rep_ctx);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user