Skip to content

Bugfix/issue 2495 - #2501

Merged
klayoutmatthias merged 3 commits into
masterfrom
bugfix/issue-2495
Oct 17, 2026
Merged

klayoutmatthias merged 3 commits into
masterfrom
bugfix/issue-2495

Conversation

@klayoutmatthias

@klayoutmatthias klayoutmatthias commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

The issue was due to a pending reference during the conversion of dict-like Variant objects to Python. Unlike "PyList_SetItem", "PyDict_SetItem" does not steal a reference to the value :(

It's good that is fixed.

Matthias Koefferlein added 2 commits October 11, 2026 23:17
The leak happened during translation of a array-like Variant
into Python. Unlike PyList_SetItem, PyDict_SetItem does not
steal references to the objects passed :(
@klayoutmatthias klayoutmatthias added this to the 0.30.13 milestone Oct 11, 2026
@martinjankoehler

Copy link
Copy Markdown
Contributor

Hi @klayoutmatthias, thanks for the bugfix!
I've just retested my use cases and can confirm that the fix works 👍

@klayoutmatthias
klayoutmatthias merged commit dc618d0 into master Oct 17, 2026
22 checks passed
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.

Python API: EdgeNeighborhoodVisitor.on_edge leaks its arguments

2 participants