diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-06-24 09:12:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-06-24 09:12:31 -0400 |
commit | 421d5ec0be06e5f53607a1f3dd1f46367e67cdef (patch) | |
tree | a1b8ce3ff5b62958409cc03554c29db7515994fb /lib/sqlalchemy/dialects/postgresql/asyncpg.py | |
parent | b2b23b00b70dceb2e76c804898d7bfa7b82e48c5 (diff) | |
download | sqlalchemy-421d5ec0be06e5f53607a1f3dd1f46367e67cdef.tar.gz |
Use Py_TPFLAGS_HAVE_GC for Row
Fixed an issue in the C extension for the :class:`_result.Row` class which
could lead to a memory leak in the unlikely case of a :class:`_result.Row`
object which referred to an ORM object that then was mutated to refer back
to the ``Row`` itself, creating a cycle. The Python C APIs for tracking GC
cycles has been added to the native :class:`_result.Row` implementation to
accommodate for this case.
Fixes: #5348
Change-Id: I3ac32012f29fbb59f8921cf2a124fa3a7ac5f0d1
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/asyncpg.py')
0 files changed, 0 insertions, 0 deletions