postgresql/contrib/jsonb_plpython
Alexander Korotkov dad8bed04a Fix memory leak in PLySequence_ToJsonbValue()
PyObject returned from PySequence_GetItem() is not released.  Similar code in PLyMapping_ToJsonbValue() is correct, because according to Python documentation
PyList_GetItem() and PyTuple_GetItem() return a borrowed reference while
PySequence_GetItem() returns new reference.  contrib/jsonb_plpython is new
in PostgreSQL 11, no backpatch is needed.

Author: Nikita Glukhov
Discussion: https://postgr.es/m/6001af16-b242-2527-bc7e-84b8a959163b%40postgrespro.ru
2018-06-15 15:01:46 +03:00
..
expected Remove contrib/jsonb_plpython's tests for infinity and NaN conversions. 2018-04-02 12:36:21 -04:00
sql Remove contrib/jsonb_plpython's tests for infinity and NaN conversions. 2018-04-02 12:36:21 -04:00
.gitignore Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
jsonb_plpython.c Fix memory leak in PLySequence_ToJsonbValue() 2018-06-15 15:01:46 +03:00
jsonb_plpython2u--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython2u.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython3u--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython3u.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpythonu--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpythonu.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00