修复 http2 解析层内存泄露;修复 http/http2 测试用例中的内存泄露

This commit is contained in:
luwenpeng
2020-10-15 19:46:02 +08:00
parent 0af5267002
commit be94218509
4 changed files with 91 additions and 59 deletions

View File

@@ -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--;