projects
/
users
/
kgrittn
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08af45f
)
Increment Py_None refcount for NULL array elements
author
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Mon, 17 Jan 2011 15:59:41 +0000
(12:59 -0300)
committer
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Mon, 17 Jan 2011 16:04:53 +0000
(13:04 -0300)
Per bug #5835 by Julien Demoor
Author: Alex Hunsaker
src/pl/plpython/plpython.c
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plpython/plpython.c
b/src/pl/plpython/plpython.c
index 1ae12396a1204413d8524ddd246672ca3a841785..d3b48ae67528ef6f622649a96c77455578c71cee 100644
(file)
--- a/
src/pl/plpython/plpython.c
+++ b/
src/pl/plpython/plpython.c
@@
-2043,7
+2043,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));
}