summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 2de0e42237..9b3c21cc15 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -665,7 +665,7 @@ try_again:
do {
if (!get_http_headers(stream, &http_headers, &http_header_size TSRMLS_CC)) {
- efree(http_headers);
+ if (http_headers) {efree(http_headers);}
if (request != buf) {efree(request);}
php_stream_close(stream);
zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"));