From: Michael Wallner Date: Thu, 9 Jun 2022 08:32:18 +0000 (+0200) Subject: missing bit X-Git-Tag: v4.2.3~1^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=fd7a7d76453ead2dfe292fb2f6cb0228ec360a67;p=m6w6%2Fext-http missing bit --- diff --git a/src/php_http_env_response.c b/src/php_http_env_response.c index f5d2da9..6717fe5 100644 --- a/src/php_http_env_response.c +++ b/src/php_http_env_response.c @@ -363,12 +363,12 @@ static ZEND_RESULT_CODE php_http_env_response_send_head(php_http_env_response_t php_http_version_t v; zend_string *zs = zval_get_string(zoption); - zval_ptr_dtor(zoption); if (EXPECTED(zs->len && php_http_version_parse(&v, zs->val))) { ret = r->ops->set_protocol_version(r, &v); php_http_version_dtor(&v); } zend_string_release(zs); + zval_ptr_dtor(zoption); } if (ret != SUCCESS) {