diff options
Diffstat (limited to 'src/pl/plpython/plpy_plpymodule.c')
| -rw-r--r-- | src/pl/plpython/plpy_plpymodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpython/plpy_plpymodule.c b/src/pl/plpython/plpy_plpymodule.c index 1f980b44b2a..89931612c5b 100644 --- a/src/pl/plpython/plpy_plpymodule.c +++ b/src/pl/plpython/plpy_plpymodule.c @@ -369,7 +369,7 @@ PLy_quote_ident(PyObject *self, PyObject *args) return ret; } -/* enforce cast of object to string */ +/* enforce cast of object to string (returns a palloc'd string or NULL) */ static char * object_to_string(PyObject *obj) { @@ -381,7 +381,7 @@ object_to_string(PyObject *obj) { char *str; - str = pstrdup(PLyUnicode_AsString(so)); + str = PLyUnicode_AsString(so); Py_DECREF(so); return str; |
