From 9e8bf1a20f20d2c955654478374c89e9b4a1c97b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 7 Dec 2005 13:56:18 +0000 Subject: [PATCH] Fixed bug #33394 (Socket Timeout on SOAP request causes general exception in Apache process). --- ext/soap/php_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.40.0