]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix memory leak in resultproxy.c
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Apr 2022 14:27:38 +0000 (10:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Apr 2022 14:31:10 +0000 (10:31 -0400)
commit3daa7c905cf03223655db10b951c5c3511b156df
tree877570ed64ebee78968c1bf5a35836c293491aca
parentf1a409ecdd5f0377b9c00a859ab14e9005e873da
fix memory leak in resultproxy.c

the error raised for non-existent attribute didn't free
the "name" string, causing a leak.

Fixed a memory leak in the C extensions which could occur when calling upon
named members of :class:`.Row` when the member does not exist under Python
3; in particular this could occur during numpy transformations when it
attempts to call members such as ``.__array__``, but the issue was
surrounding any ``AttributeError`` thrown by the :class:`.Row` object. This
issue does not apply to version 2.0 which has already transitioned to
Cython. Thanks much to Sebastian Berg for identifying the problem.

Fixes: #7875
Change-Id: I444026a877ea1473a5ffac592c7f36ed6f4b563e
doc/build/changelog/unreleased_14/7875.rst [new file with mode: 0644]
lib/sqlalchemy/cextension/resultproxy.c