##// END OF EJS Templates
parsers: handle refcounting of "parents" consistently...
Gregory Szorc -
r31426:43a7dfbe default
parent child Browse files
Show More
@@ -2739,6 +2739,7 b' static PyObject *fm1readmarker(const cha'
2739 data += nparents * hashwidth;
2739 data += nparents * hashwidth;
2740 } else {
2740 } else {
2741 parents = Py_None;
2741 parents = Py_None;
2742 Py_INCREF(parents);
2742 }
2743 }
2743
2744
2744 if (data + 2 * nmetadata > dataend) {
2745 if (data + 2 * nmetadata > dataend) {
@@ -2781,8 +2782,7 b' bail:'
2781 Py_XDECREF(prec);
2782 Py_XDECREF(prec);
2782 Py_XDECREF(succs);
2783 Py_XDECREF(succs);
2783 Py_XDECREF(metadata);
2784 Py_XDECREF(metadata);
2784 if (parents != Py_None)
2785 Py_XDECREF(parents);
2785 Py_XDECREF(parents);
2786 return ret;
2786 return ret;
2787 }
2787 }
2788
2788
General Comments 0
You need to be logged in to leave comments. Login now