From d986d8a8cc5951fb355395813bc0a3e1cac93a43 Mon Sep 17 00:00:00 2001 From: luqiuwen Date: Tue, 8 Jan 2019 19:26:14 +0600 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=89=A7=E8=A1=8C=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E5=8A=A8=E4=BD=9C=E6=97=B6=EF=BC=8C=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=9C=AA=E7=BB=93=E6=9D=9F=E9=87=8A=E6=94=BEpangu=5Fhttp?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E6=96=87double-free=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=BA=94=E7=AD=94=E4=B8=8A=E4=B8=8B=E6=96=87=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/pangu-http/src/pangu_http.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin/business/pangu-http/src/pangu_http.cpp b/plugin/business/pangu-http/src/pangu_http.cpp index 4fb4eba..bcef5cb 100644 --- a/plugin/business/pangu-http/src/pangu_http.cpp +++ b/plugin/business/pangu-http/src/pangu_http.cpp @@ -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; }