Skip to content

Conversation

TimWolla
Copy link
Member

No description provided.

The `php_uri_free()` function already unconditionally called `->free_uri()` and
thus couldn't be safely used when the `->uri` was `NULL` for some reason.

The lexbor implementation was already safe, because `lxb_url_destroy()` is
guaranteed to be a noop for `NULL`.
This implicitly fixes an `UNEXPECTED(…->uri != NULL)` in `uri_free_obj_handler`
that likely should have read `EXPECTED` instead.
@TimWolla TimWolla requested a review from kocsismate as a code owner August 28, 2025 22:40
@TimWolla TimWolla marked this pull request as draft August 28, 2025 23:14
@TimWolla
Copy link
Member Author

This depends on another cleanup that I've not yet proposed. Putting on Draft until that happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant