diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/http11/http11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c index cbfb55e..9d7673b 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -79,9 +79,9 @@ void HttpParser_free(void *data) { VALUE HttpParser_alloc(VALUE klass) { - TRACE(); VALUE obj; http_parser *hp = calloc(1, sizeof(http_parser)); + TRACE(); hp->http_field = http_field; hp->request_method = request_method; hp->path_info = path_info; @@ -233,9 +233,9 @@ void URIClassifier_free(void *data) VALUE URIClassifier_alloc(VALUE klass) { - TRACE(); VALUE obj; struct tst *tst = tst_init(TRIE_INCREASE); + TRACE(); assert(tst && "failed to initialize trie structure"); obj = Data_Wrap_Struct(klass, NULL, URIClassifier_free, tst); |