forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdad8bed
committed
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 documentationPyList_GetItem() and PyTuple_GetItem() return a borrowed reference whilePySequence_GetItem() returns new reference. contrib/jsonb_plpython is newin PostgreSQL 11, no backpatch is needed.Author: Nikita GlukhovDiscussion:https://postgr.es/m/6001af16-b242-2527-bc7e-84b8a959163b%40postgrespro.ru1 parent969274d commitdad8bed
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
| 311 | + | |
| 312 | + | |
311 | 313 |
| |
312 | 314 |
| |
313 | 315 |
| |
|
0 commit comments
Comments
(0)