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.
2 parents 5623e67 + de7a212 commit f6380e4Copy full SHA for f6380e4
ext/soap/php_http.c
@@ -1144,11 +1144,11 @@ int make_http_soap_request(zval *this_ptr,
1144
1145
if ((loc = get_http_header_value(ZSTR_VAL(http_headers), "Location:")) != NULL) {
1146
php_url *new_url = php_url_parse(loc);
1147
+ efree(loc);
1148
1149
if (new_url != NULL) {
1150
zend_string_release_ex(http_headers, 0);
1151
zend_string_release_ex(http_body, 0);
- efree(loc);
1152
if (new_url->scheme == NULL && new_url->path != NULL) {
1153
new_url->scheme = phpurl->scheme ? zend_string_copy(phpurl->scheme) : NULL;
1154
new_url->host = phpurl->host ? zend_string_copy(phpurl->host) : NULL;
0 commit comments