]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix reference leak in compiled cache
authorOlivier Grisel <olivier.grisel@ensta.org>
Wed, 25 Apr 2018 13:54:00 +0000 (09:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Apr 2018 19:16:47 +0000 (15:16 -0400)
commit91b62e4257b0ea98bd9e951ab13445d123e83ab5
tree421fdcecbc94c34b81f5ae1a3b32843dd05d6622
parent9fed6f92a1cfb192e77853f97586187633149f29
Fix reference leak in compiled cache

Fixed a reference leak issue where the values of the parameter dictionary
used in a statement execution would remain referenced by the "compiled
cache", as a result of storing the key view used by Python 3 dictionary
keys().  Pull request courtesy Olivier Grisel.

Change-Id: Icfb0f38111a165780f6dd3e4e3382a03df79ce26
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/441
(cherry picked from commit 30b02003a70f37aa83e20de6229afe2a3600b648)
doc/build/changelog/unreleased_12/pr_441.rst [new file with mode: 0644]
lib/sqlalchemy/engine/base.py
test/engine/test_execute.py