From: Michael Wallner Date: Sun, 9 Dec 2012 22:18:26 +0000 (+0000) Subject: fix leak X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~93 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=86d66a015986faf8cfd9910dcbc903a51295b566;p=m6w6%2Fext-http fix leak --- diff --git a/php_http_client_request.c b/php_http_client_request.c index c073512..2050bf2 100644 --- a/php_http_client_request.c +++ b/php_http_client_request.c @@ -145,7 +145,7 @@ PHP_METHOD(HttpClientRequest, getContentType) php_http_message_object_t *obj = zend_object_store_get_object(getThis() TSRMLS_CC); zval *zct = php_http_message_header(obj->message, ZEND_STRL("Content-Type"), 1); - RETURN_ZVAL(zct, 0, 0); + RETURN_ZVAL(zct, 0, 1); } RETURN_FALSE; }