修正执行替换动作时,连接未结束释放pangu_http上下文double-free替换应答上下文的问题

This commit is contained in:
luqiuwen
2019-01-08 19:26:14 +06:00
parent a3beec84f9
commit d986d8a8cc

View File

@@ -566,12 +566,7 @@ void http_repl_ctx_free(struct replace_ctx* rep_ctx)
evbuffer_free(rep_ctx->http_body);
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);
return;
}