We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4db48 commit ca16a22Copy full SHA for ca16a22
ext/soap/php_http.c
@@ -1160,11 +1160,11 @@ bool make_http_soap_request(
1160
1161
if ((loc = get_http_header_value(http_headers, "Location:")) != NULL) {
1162
php_url *new_url = php_url_parse(loc);
1163
+ efree(loc);
1164
1165
if (new_url != NULL) {
1166
zend_string_release_ex(http_headers, 0);
1167
zend_string_release_ex(http_body, 0);
- efree(loc);
1168
if (new_url->scheme == NULL && new_url->path != NULL) {
1169
new_url->scheme = phpurl->scheme ? zend_string_copy(phpurl->scheme) : NULL;
1170
new_url->host = phpurl->host ? zend_string_copy(phpurl->host) : NULL;
0 commit comments