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
5252- SOAP:
5353 . Fixed bug GH-18990, bug #81029, bug #47314 (SOAP HTTP socket not closing
5454 on object destruction). (nielsdos)
55+ . Fix memory leak when URL parsing fails in redirect. (Girgias)
5556
5657- Standard:
5758 . 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,
11441144
11451145 if ((loc = get_http_header_value (ZSTR_VAL (http_headers ), "Location:" )) != NULL ) {
11461146 php_url * new_url = php_url_parse (loc );
1147+ efree (loc );
11471148
11481149 if (new_url != NULL ) {
11491150 zend_string_release_ex (http_headers , 0 );
11501151 zend_string_release_ex (http_body , 0 );
1151- efree (loc );
11521152 if (new_url -> scheme == NULL && new_url -> path != NULL ) {
11531153 new_url -> scheme = phpurl -> scheme ? zend_string_copy (phpurl -> scheme ) : NULL ;
11541154 new_url -> host = phpurl -> host ? zend_string_copy (phpurl -> host ) : NULL ;
You can’t perform that action at this time.
0 commit comments