]> granicus.if.org Git - postgresql/commitdiff
Fix plpython breakage detected on certain Fedora machines on buildfarm.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 1 Mar 2011 23:59:31 +0000 (18:59 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 1 Mar 2011 23:59:31 +0000 (18:59 -0500)
Patch from Jan UrbaƄski.

src/pl/plpython/plpython.c

index 4cc0708dcb9e9297f7a40f99c7389907b9ccfca2..a2ebd22428c04006aa3430647e0cd14eea962afb 100644 (file)
@@ -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);