Skip to content

Remove XML::Error.errors#14936

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/remove-xml-errors
Sep 18, 2024
Merged

Remove XML::Error.errors#14936
straight-shoota merged 2 commits intocrystal-lang:masterfrom
straight-shoota:fix/remove-xml-errors

Conversation

@straight-shoota
Copy link
Member

@straight-shoota straight-shoota commented Aug 23, 2024

Resolves #14934

XML::Error.errors collects all error messages from libxml2. Using it is deprecated, but without any calls to it, the error array is never cleared. So we're dropping it because it cannot be fixed. The new error mechanism based on XML::Reader#errors is better in every regard.

Closes #14966

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. breaking-change May have breaking effect in some edge cases. Mostly negligible, but still noteworthy. topic:stdlib:serialization labels Aug 23, 2024
@straight-shoota straight-shoota self-assigned this Aug 23, 2024
@straight-shoota
Copy link
Member Author

Co-authored-by: Beta Ziliani <beta@manas.tech>
@straight-shoota straight-shoota added this to the 1.14.0 milestone Sep 11, 2024
@straight-shoota straight-shoota merged commit 626e8f7 into crystal-lang:master Sep 18, 2024
@straight-shoota straight-shoota deleted the fix/remove-xml-errors branch September 18, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change May have breaking effect in some edge cases. Mostly negligible, but still noteworthy. kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XML::Error.errors leaks memory

3 participants