##// END OF EJS Templates
parsers: use PyTuple_Pack instead of manual list-filling...
Bryan O'Sullivan -
r27410:41127e87 default
parent child Browse files
Show More
@@ -1351,15 +1351,7 b' static PyObject *compute_phases_map_sets'
1351 goto release;
1351 goto release;
1352 PyList_SET_ITEM(phaseslist, i, phaseval);
1352 PyList_SET_ITEM(phaseslist, i, phaseval);
1353 }
1353 }
1354 ret = PyList_New(2);
1354 ret = PyTuple_Pack(2, phaseslist, phasessetlist);
1355 if (ret == NULL)
1356 goto release;
1357
1358 PyList_SET_ITEM(ret, 0, phaseslist);
1359 PyList_SET_ITEM(ret, 1, phasessetlist);
1360 /* We don't release phaseslist and phasessetlist as we return them to
1361 * python */
1362 goto done;
1363
1355
1364 release:
1356 release:
1365 Py_XDECREF(phaseslist);
1357 Py_XDECREF(phaseslist);
General Comments 0
You need to be logged in to leave comments. Login now