File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ PHP NEWS
45
45
- SOAP:
46
46
. Fixed bug GH-18990, bug #81029, bug #47314 (SOAP HTTP socket not closing
47
47
on object destruction). (nielsdos)
48
+ . Fix memory leak when URL parsing fails in redirect. (Girgias)
48
49
49
50
- Standard:
50
51
. Fix misleading errors in printf(). (nielsdos)
Original file line number Diff line number Diff line change @@ -1128,11 +1128,11 @@ int make_http_soap_request(zval *this_ptr,
1128
1128
1129
1129
if ((loc = get_http_header_value (ZSTR_VAL (http_headers ), "Location: " )) != NULL ) {
1130
1130
php_url * new_url = php_url_parse (loc );
1131
+ efree (loc );
1131
1132
1132
1133
if (new_url != NULL ) {
1133
1134
zend_string_release_ex (http_headers , 0 );
1134
1135
zend_string_release_ex (http_body , 0 );
1135
- efree (loc );
1136
1136
if (new_url -> scheme == NULL && new_url -> path != NULL ) {
1137
1137
new_url -> scheme = phpurl -> scheme ? zend_string_copy (phpurl -> scheme ) : NULL ;
1138
1138
new_url -> host = phpurl -> host ? zend_string_copy (phpurl -> host ) : NULL ;
You can’t perform that action at this time.
0 commit comments