X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_api.c;h=e399ed666a6e51a4c77bc41ae9f42151c72ea2ad;hp=5a2bdb763670023e5769d16f838bd598822964d0;hb=234dac3f03c6b7342bb70829bc9641268cab7156;hpb=94e87723fd916f0fe9e72f2280433b06e295bf79 diff --git a/http_message_api.c b/http_message_api.c index 5a2bdb7..e399ed6 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -334,7 +334,6 @@ PHP_HTTP_API void _http_message_tostruct_recursive(http_message *msg, zval *obj array_init(headers); zend_hash_copy(Z_ARRVAL_P(headers), &msg->hdrs, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *)); add_assoc_zval(&strct, "headers", headers); - zval_ptr_dtor(&headers); add_assoc_stringl(&strct, "body", PHPSTR_VAL(msg), PHPSTR_LEN(msg), 1); @@ -353,8 +352,6 @@ PHP_HTTP_API void _http_message_tostruct_recursive(http_message *msg, zval *obj } else { add_assoc_null(&strct, "parentMessage"); } - http_message_dtor(msg); - efree(msg); } PHP_HTTP_API STATUS _http_message_send(http_message *message TSRMLS_DC)