重构key keeper创建keyring的代码。修复除 #97 外的valgrind definitely lost。
This commit is contained in:
@@ -801,7 +801,7 @@ struct http_half_private * hf_private_create(tfe_http_direction ht_dir, short ma
|
||||
hf_private->hf_public.ops = &__http_half_ops;
|
||||
|
||||
/* PRIVATE */
|
||||
hf_private->parse_object = (struct http_parser *) malloc(sizeof(struct http_parser));
|
||||
hf_private->parse_object = ALLOC(struct http_parser, 1);
|
||||
assert(hf_private->parse_object != NULL);
|
||||
|
||||
if (ht_dir == TFE_HTTP_REQUEST)
|
||||
|
||||
Reference in New Issue
Block a user