From: Dmitry Stogov Date: Wed, 7 Dec 2005 13:55:52 +0000 (+0000) Subject: Fixed bug #33394 (Socket Timeout on SOAP request causes general exception in Apache... X-Git-Tag: RELEASE_1_0_4~488 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e83748cfca3e006edcf4d9053109a6f46555682;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 2718b3708a..fa7afefe08 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) {