summaryrefslogtreecommitdiff
path: root/python/generic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/generic.cc')
-rw-r--r--python/generic.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/generic.cc b/python/generic.cc
index 7309d978..51439a1b 100644
--- a/python/generic.cc
+++ b/python/generic.cc
@@ -25,8 +25,9 @@ PyObject *HandleErrors(PyObject *Res)
return Res;
}
- if (Res != 0)
+ if (Res != 0) {
Py_DECREF(Res);
+ }
string Err;
int errcnt = 0;