##// END OF EJS Templates
reachableroots: consistently use short-form of PyErr_NoMemory()
Augie Fackler -
r26008:59d57ea6 default
parent child Browse files
Show More
@@ -1151,13 +1151,13 b' static PyObject *reachableroots(indexObj'
1151 /* Initialize internal datastructures */
1151 /* Initialize internal datastructures */
1152 tovisit = (int *)malloc((len + 1) * sizeof(int));
1152 tovisit = (int *)malloc((len + 1) * sizeof(int));
1153 if (tovisit == NULL) {
1153 if (tovisit == NULL) {
1154 PyErr_SetNone(PyExc_MemoryError);
1154 PyErr_NoMemory();
1155 goto release_reachable;
1155 goto release_reachable;
1156 }
1156 }
1157
1157
1158 seen = (char *)calloc(len+1, 1);
1158 seen = (char *)calloc(len+1, 1);
1159 if (seen == NULL) {
1159 if (seen == NULL) {
1160 PyErr_SetNone(PyExc_MemoryError);
1160 PyErr_NoMemory();
1161 goto release_seen_and_tovisit;
1161 goto release_seen_and_tovisit;
1162 }
1162 }
1163
1163
General Comments 0
You need to be logged in to leave comments. Login now