diff options
| author | luqiuwen <[email protected]> | 2019-01-08 19:26:14 +0600 |
|---|---|---|
| committer | luqiuwen <[email protected]> | 2019-01-08 19:26:14 +0600 |
| commit | d986d8a8cc5951fb355395813bc0a3e1cac93a43 (patch) | |
| tree | ef5fece5468762061bda7a058e4619eb82a1537f | |
| parent | a3beec84f90ff6ed797f37327f7cca1ba2ac547e (diff) | |
修正执行替换动作时,连接未结束释放pangu_http上下文double-free替换应答上下文的问题
| -rw-r--r-- | plugin/business/pangu-http/src/pangu_http.cpp | 7 |
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; } |
