Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit978445b

Browse files
committed
Increment Py_None refcount for NULL array elements
Per bug #5835 by Julien DemoorAuthor: Alex Hunsaker
1 parent08af45f commit978445b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,10 @@ PLyList_FromArray(PLyDatumToOb *arg, Datum d)
20432043
elm->typlen,elm->typbyval,elm->typalign,
20442044
&isnull);
20452045
if (isnull)
2046+
{
2047+
Py_INCREF(Py_None);
20462048
PyList_SET_ITEM(list,i,Py_None);
2049+
}
20472050
else
20482051
PyList_SET_ITEM(list,i,elm->func(elm,elem));
20492052
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp