summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluqiuwen <[email protected]>2019-01-08 19:26:14 +0600
committerluqiuwen <[email protected]>2019-01-08 19:26:14 +0600
commitd986d8a8cc5951fb355395813bc0a3e1cac93a43 (patch)
treeef5fece5468762061bda7a058e4619eb82a1537f
parenta3beec84f90ff6ed797f37327f7cca1ba2ac547e (diff)
修正执行替换动作时,连接未结束释放pangu_http上下文double-free替换应答上下文的问题
-rw-r--r--plugin/business/pangu-http/src/pangu_http.cpp7
1 files changed, 1 insertions, 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;
}