##// END OF EJS Templates
manifest: incref/decref copy->pydata to clarify 'copy' holds a reference
Yuya Nishihara -
r39486:ca77788c stable
parent child Browse files
Show More
@@ -725,7 +725,7 b' static lazymanifest *lazymanifest_filter'
725 copy->maxlines = self->maxlines;
725 copy->maxlines = self->maxlines;
726 copy->numlines = 0;
726 copy->numlines = 0;
727 copy->pydata = self->pydata;
727 copy->pydata = self->pydata;
728 Py_INCREF(self->pydata);
728 Py_INCREF(copy->pydata);
729 for (i = 0; i < self->numlines; i++) {
729 for (i = 0; i < self->numlines; i++) {
730 PyObject *arglist = NULL, *result = NULL;
730 PyObject *arglist = NULL, *result = NULL;
731 arglist = Py_BuildValue(PY23("(s)", "(y)"),
731 arglist = Py_BuildValue(PY23("(s)", "(y)"),
@@ -739,7 +739,7 b' static lazymanifest *lazymanifest_filter'
739 * through and give up */
739 * through and give up */
740 if (!result) {
740 if (!result) {
741 free(copy->lines);
741 free(copy->lines);
742 Py_DECREF(self->pydata);
742 Py_DECREF(copy->pydata);
743 return NULL;
743 return NULL;
744 }
744 }
745 if (PyObject_IsTrue(result)) {
745 if (PyObject_IsTrue(result)) {
General Comments 0
You need to be logged in to leave comments. Login now