Skip to content

Fix reference leak in to_builtins for array-like Structs - #1177

Merged
Siyet merged 1 commit into
mainfrom
fix-to-builtins-array-struct-leak
Sep 9, 2026
Merged

Siyet merged 1 commit into
mainfrom
fix-to-builtins-array-struct-leak

Conversation

@Siyet

@Siyet Siyet commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Remove the extra reference increment for converted fields before inserting them into the result list or tuple. This prevents leaked references on successful conversion and when a later field fails to convert.

Fixes #1175.

@Siyet
Siyet added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit ccbeca4 Sep 9, 2026
24 checks passed
@Siyet
Siyet deleted the fix-to-builtins-array-struct-leak branch September 9, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

to_builtins leaks the field objects of array_like=True structs (0.21.1)

1 participant