git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 46e3442) | patch
Avoid Python memory leaks in hstore_plpython and jsonb_plpython.
Sat, 6 Apr 2019 21:54:29 +0000 (17:54 -0400)
Sat, 6 Apr 2019 21:54:29 +0000 (17:54 -0400)
commit 9e360f0e8327bcf4b7c5ce957024fdff8f95f7de
Avoid Python memory leaks in hstore_plpython and jsonb_plpython.

Fix some places where we might fail to do Py_DECREF() on a Python
object (thereby leaking it for the rest of the session). Almost
all of the risks were in error-recovery paths, which we don't really
expect to hit anyway. Hence, while this is definitely a bug fix,
it doesn't quite seem worth back-patching.

Nikita Glukhov, Michael Paquier, Tom Lane

Discussion: https://postgr.es/m/28053a7d-10d8-fc23-b05c-b4749c873f63@postgrespro.ru
contrib/hstore_plpython/hstore_plpython.c diff | blob | blame | history
contrib/jsonb_plpython/jsonb_plpython.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /