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 @@ -52,6 +52,7 @@ PHP NEWS
52
52
- SOAP:
53
53
. Fixed bug GH-18990, bug #81029, bug #47314 (SOAP HTTP socket not closing
54
54
on object destruction). (nielsdos)
55
+ . Fix memory leak when URL parsing fails in redirect. (Girgias)
55
56
56
57
- Standard:
57
58
. Fix misleading errors in printf(). (nielsdos)
Original file line number Diff line number Diff line change @@ -1144,11 +1144,11 @@ int make_http_soap_request(zval *this_ptr,
1144
1144
1145
1145
if ((loc = get_http_header_value (ZSTR_VAL (http_headers ), "Location:" )) != NULL ) {
1146
1146
php_url * new_url = php_url_parse (loc );
1147
+ efree (loc );
1147
1148
1148
1149
if (new_url != NULL ) {
1149
1150
zend_string_release_ex (http_headers , 0 );
1150
1151
zend_string_release_ex (http_body , 0 );
1151
- efree (loc );
1152
1152
if (new_url -> scheme == NULL && new_url -> path != NULL ) {
1153
1153
new_url -> scheme = phpurl -> scheme ? zend_string_copy (phpurl -> scheme ) : NULL ;
1154
1154
new_url -> host = phpurl -> host ? zend_string_copy (phpurl -> host ) : NULL ;
You can’t perform that action at this time.
0 commit comments