Skip to content
Snippets Groups Projects
Commit a8f2512b authored by Alexander Pace's avatar Alexander Pace
Browse files

cleaned up a few return NULLs

parent 102c14c7
No related branches found
No related tags found
No related merge requests found
Pipeline #185928 passed with warnings
......@@ -340,7 +340,7 @@ PyMODINIT_FUNC PyInit__rate_estimation(void)
import_array();
if(PyType_Ready(&LogPosterior_Type) < 0)
return;
return NULL;
Py_INCREF((PyObject *) &LogPosterior_Type);
PyModule_AddObject(module, "LogPosterior", (PyObject *) &LogPosterior_Type);
......
......@@ -889,11 +889,11 @@ PyMODINIT_FUNC PyInit__snglinspiraltable(void)
{
PyObject *lal = PyImport_ImportModule("lal");
if(!lal)
return;
return NULL;
LIGOTimeGPSType = PyDict_GetItemString(PyModule_GetDict(lal), "LIGOTimeGPS");
if(!LIGOTimeGPSType) {
Py_DECREF(lal);
return;
return NULL;
}
Py_INCREF(LIGOTimeGPSType);
Py_DECREF(lal);
......@@ -901,7 +901,7 @@ PyMODINIT_FUNC PyInit__snglinspiraltable(void)
/* SnglInspiralTable */
if(PyType_Ready(&gstlal_GSTLALSnglInspiral_Type) < 0)
return;
return NULL;
Py_INCREF(&gstlal_GSTLALSnglInspiral_Type);
PyModule_AddObject(module, "GSTLALSnglInspiral", (PyObject *) &gstlal_GSTLALSnglInspiral_Type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment