From: Dmitry Stogov Date: Wed, 7 Dec 2005 13:56:18 +0000 (+0000) Subject: Fixed bug #33394 (Socket Timeout on SOAP request causes general exception in Apache... X-Git-Tag: php-5.1.2RC1~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e8bf1a20f20d2c955654478374c89e9b4a1c97b;p=php Fixed bug #33394 (Socket Timeout on SOAP request causes general exception in Apache process). --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 644cfba092..ad83d22de2 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -179,7 +179,9 @@ static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, in php_stream_close(stream); stream = NULL; } - efree(http_headers); + if (http_headers) { + efree(http_headers); + } } /* enable SSL transport layer */ if (stream) {