summaryrefslogtreecommitdiffstats
path: root/python/astra
diff options
context:
space:
mode:
Diffstat (limited to 'python/astra')
-rw-r--r--python/astra/src/PythonPluginAlgorithm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/astra/src/PythonPluginAlgorithm.cpp b/python/astra/src/PythonPluginAlgorithm.cpp
index 0100bed..61a56ea 100644
--- a/python/astra/src/PythonPluginAlgorithm.cpp
+++ b/python/astra/src/PythonPluginAlgorithm.cpp
@@ -144,7 +144,10 @@ void fixLapackLoading(){
if(lapack!=NULL){
Py_DECREF(lapack);
}
- PyObject_CallMethod(sys, "setdlopenflags", "O",curFlags);
+ PyObject *retVal2 = PyObject_CallMethod(sys, "setdlopenflags", "O",curFlags);
+ if(retVal2!=NULL){
+ Py_DECREF(retVal2);
+ }
Py_DECREF(retVal);
}
Py_DECREF(curFlags);