##// END OF EJS Templates
reachableroots: handle error of PyList_Append()
Yuya Nishihara -
r26058:e7fe0a12 default
parent child Browse files
Show More
@@ -1203,8 +1203,10 b' static PyObject *reachableroots2(indexOb'
1203 val = PyInt_FromLong(revnum);
1203 val = PyInt_FromLong(revnum);
1204 if (val == NULL)
1204 if (val == NULL)
1205 goto bail;
1205 goto bail;
1206 PyList_Append(reachable, val);
1206 r = PyList_Append(reachable, val);
1207 Py_DECREF(val);
1207 Py_DECREF(val);
1208 if (r < 0)
1209 goto bail;
1208 if (includepath == 0)
1210 if (includepath == 0)
1209 continue;
1211 continue;
1210 }
1212 }
@@ -1245,8 +1247,10 b' static PyObject *reachableroots2(indexOb'
1245 val = PyInt_FromLong(i);
1247 val = PyInt_FromLong(i);
1246 if (val == NULL)
1248 if (val == NULL)
1247 goto bail;
1249 goto bail;
1248 PyList_Append(reachable, val);
1250 r = PyList_Append(reachable, val);
1249 Py_DECREF(val);
1251 Py_DECREF(val);
1252 if (r < 0)
1253 goto bail;
1250 }
1254 }
1251 }
1255 }
1252 }
1256 }
General Comments 0
You need to be logged in to leave comments. Login now