[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Appease pychecker
Update of /home/minion/cvsroot/src/minion/src
In directory moria.mit.edu:/tmp/cvs-serv19504/src
Modified Files:
fec.c
Log Message:
Appease pychecker
Index: fec.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/fec.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- fec.c 8 Jul 2003 18:38:25 -0000 1.4
+++ fec.c 8 Jul 2003 19:13:50 -0000 1.5
@@ -808,7 +808,7 @@
&k, &n))
return NULL;
- if (k < 1 || n < 1 || k > 255 || n > 255) {
+ if (k < 1 || n < 1 || k > 255 || n > 255 || k > n) {
PyErr_SetString(mm_FECError, "K or N is out of range");
return NULL;
}
@@ -944,10 +944,8 @@
err:
if (stringPtrs)
free(stringPtrs);
- if (tup)
- Py_DECREF(tup);
- if (result)
- Py_DECREF(result);
+ Py_XDECREF(tup);
+ Py_XDECREF(result);
return NULL;
}
@@ -1072,18 +1070,15 @@
return result;
err:
- if (tup)
- Py_DECREF(tup);
+ Py_XDECREF(tup);
if (indices)
free(indices);
if (objPtrs)
free(objPtrs);
- if (stringPtrs) {
+ if (stringPtrs)
free(stringPtrs);
- }
- if (result)
- Py_DECREF(result);
-
+ Py_XDECREF(result);
+
return NULL;
}