Skip to content

gh-131311: Fix additional memory leaks in ctypes#131429

Merged
encukou merged 5 commits intopython:mainfrom
sergey-miryanov:gh-131311-fix-memory-leaks-in-ctypes
Mar 24, 2025
Merged

gh-131311: Fix additional memory leaks in ctypes#131429
encukou merged 5 commits intopython:mainfrom
sergey-miryanov:gh-131311-fix-memory-leaks-in-ctypes

Conversation

@sergey-miryanov
Copy link
Copy Markdown
Contributor

See updated gh-131311 for description.

Comment thread Modules/_ctypes/stgdict.c
Comment thread Modules/_ctypes/stgdict.c
Comment thread Modules/_ctypes/stgdict.c Outdated
@sergey-miryanov sergey-miryanov force-pushed the gh-131311-fix-memory-leaks-in-ctypes branch from 853490a to f27c11a Compare March 20, 2025 12:57
@sergey-miryanov
Copy link
Copy Markdown
Contributor Author

Sorry I force-pushed because did wrong revert commit. Will try to avoid this further.

@encukou encukou merged commit 9c4fb92 into python:main Mar 24, 2025
45 checks passed
@encukou
Copy link
Copy Markdown
Member

encukou commented Mar 24, 2025

Thank you!

diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
* Visit keep in StructParam_traverse
* Decref swapped in PyCSimpleType_init
* Decref ob in make_funcptrtype_dict
* Check Pointer_item result while constructing result list in Pointer_subscript

* Fix align and size naming in PyCStructUnionType_update_stginfo
  - as discussed in previous PR
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.

3 participants