diff options
| -rw-r--r-- | ext/soap/php_http.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |
