diff options
| author | luwenpeng <[email protected]> | 2020-10-15 19:46:02 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2020-10-15 19:46:35 +0800 |
| commit | be94218509a3c511086506d565fbca2c631427e4 (patch) | |
| tree | 88374d1f02bfd179b9566b7178015de4cf606573 /plugin/protocol/http2/src/http2_stream.cpp | |
| parent | 0af5267002888090fc39196b86c8d79bf7362f46 (diff) | |
修复 http2 解析层内存泄露;修复 http/http2 测试用例中的内存泄露v4.3.12-202011
Diffstat (limited to 'plugin/protocol/http2/src/http2_stream.cpp')
| -rw-r--r-- | plugin/protocol/http2/src/http2_stream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp index 58c1f6b..96a97b3 100644 --- a/plugin/protocol/http2/src/http2_stream.cpp +++ b/plugin/protocol/http2/src/http2_stream.cpp @@ -315,7 +315,8 @@ int h2_half_ops_field_write(struct tfe_http_half * half, const struct http_field continue; TAILQ_REMOVE(&h2_header->h2_field_list, h2_field, next); - free(h2_field->nv.name); + free(h2_field->field); + free(h2_field->nv.name); free(h2_field->nv.value); free(h2_field); h2_header->nvlen--; |
