修复 http2 解析层内存泄露;修复 http/http2 测试用例中的内存泄露
This commit is contained in:
@@ -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--;
|
||||
|
||||
Reference in New Issue
Block a user