mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Increment Py_None refcount for NULL array elements
Per bug #5835 by Julien Demoor Author: Alex Hunsaker
This commit is contained in:
parent
1435a8554c
commit
051096d06e
@ -2042,7 +2042,10 @@ PLyList_FromArray(PLyDatumToOb *arg, Datum d)
|
||||
elm->typlen, elm->typbyval, elm->typalign,
|
||||
&isnull);
|
||||
if (isnull)
|
||||
{
|
||||
Py_INCREF(Py_None);
|
||||
PyList_SET_ITEM(list, i, Py_None);
|
||||
}
|
||||
else
|
||||
PyList_SET_ITEM(list, i, elm->func(elm, elem));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user