]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: cache dynamic adapters created in register_array()
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 25 Sep 2023 22:26:56 +0000 (00:26 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 25 Sep 2023 23:10:06 +0000 (01:10 +0200)
commit3ced52c572b2b49932588192f8dd93f4bac45b57
treecabaa4d132089c76b8ce05b2761e4c1d60945a17
parentfbb47cabef77ab92b2c18659dfc37a0892bea7e5
fix: cache dynamic adapters created in register_array()

If the base class is a C extension, the subclasses cannot be GC'd. This
results in a leak if register_array() is called in a loop.

Close #647
docs/news.rst
psycopg/psycopg/types/array.py
tests/types/test_array.py