aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_func.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2018-06-15 15:01:46 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2018-06-15 15:01:46 +0300
commitdad8bed04ab98ada84ecd58ace6f59839aa161c4 (patch)
tree6139001367230f79e313e3ba43bbc07f38207bf8 /src/backend/parser/parse_func.c
parent969274d813018b08389956e493f691671f0d84f1 (diff)
downloadpostgresql-dad8bed04ab98ada84ecd58ace6f59839aa161c4.tar.gz
postgresql-dad8bed04ab98ada84ecd58ace6f59839aa161c4.zip
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
Diffstat (limited to 'src/backend/parser/parse_func.c')
0 files changed, 0 insertions, 0 deletions