fix leak
authorMichael Wallner <mike@php.net>
Sun, 9 Dec 2012 22:18:26 +0000 (22:18 +0000)
committerMichael Wallner <mike@php.net>
Sun, 9 Dec 2012 22:18:26 +0000 (22:18 +0000)
php_http_client_request.c

index c073512ed5f02871e4054bb9b1cec20e4dc1ef86..2050bf2fe7153b9dccd39ec2fe26abbfc36507cd 100644 (file)
@@ -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;
 }