diff options
author | Andrew Dunstan | 2011-03-01 23:59:31 +0000 |
---|---|---|
committer | Andrew Dunstan | 2011-03-01 23:59:31 +0000 |
commit | 4c966d920fb75a5d0366b887c2ef28e6d87c1eda (patch) | |
tree | 5237bffce220b098f956e84b115161de2e6f5f63 /src | |
parent | 2f363590c17c0e02186efab5fa0b197b82a5b3ae (diff) |
Fix plpython breakage detected on certain Fedora machines on buildfarm.
Patch from Jan UrbaĆski.
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpython/plpython.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 4cc0708dcb9..a2ebd22428c 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -3936,6 +3936,7 @@ PLy_add_exceptions(PyObject *plpy) #endif if (PyModule_AddObject(plpy, "spiexceptions", excmod) < 0) PLy_elog(ERROR, "failed to add the spiexceptions module"); + Py_INCREF(excmod); PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL); PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL); |