summaryrefslogtreecommitdiff
path: root/plugin/protocol/http/src/http_half.cpp
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-11-29 19:02:07 +0800
committerzhengchao <[email protected]>2018-11-29 19:02:07 +0800
commita5ca97d91edb7aedc39417f5c901affbf509cdea (patch)
tree4f0724a4d738eef1322e301990ed7aaf2ae04771 /plugin/protocol/http/src/http_half.cpp
parentcc5420d15841f0e406173fcc85a7eb788312d864 (diff)
重构key keeper创建keyring的代码。修复除 #97 外的valgrind definitely lost。v3.0.5-20181130
Diffstat (limited to 'plugin/protocol/http/src/http_half.cpp')
-rw-r--r--plugin/protocol/http/src/http_half.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/protocol/http/src/http_half.cpp b/plugin/protocol/http/src/http_half.cpp
index d4200ec..d81da65 100644
--- a/plugin/protocol/http/src/http_half.cpp
+++ b/plugin/protocol/http/src/http_half.cpp
@@ -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)