Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr

Peter Eisentraut <peter_e@gmx.net>

Commit: e4b08587e31d7b829e0343a6546c8d31e5aedde5
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2010-08-25T19:37:30Z
Releases: 8.0.26
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr

This is reproducibly possible in Python 2.7 if the user turned
PendingDeprecationWarning into an error, but it's theoretically also possible
in earlier versions in case of exceptional conditions.

backpatched to 8.0

Files

PathChange+/−
src/pl/plpython/plpython.c modified +6 −1