##// 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 725 copy->maxlines = self->maxlines;
726 726 copy->numlines = 0;
727 727 copy->pydata = self->pydata;
728 Py_INCREF(self->pydata);
728 Py_INCREF(copy->pydata);
729 729 for (i = 0; i < self->numlines; i++) {
730 730 PyObject *arglist = NULL, *result = NULL;
731 731 arglist = Py_BuildValue(PY23("(s)", "(y)"),
@@ -739,7 +739,7 b' static lazymanifest *lazymanifest_filter'
739 739 * through and give up */
740 740 if (!result) {
741 741 free(copy->lines);
742 Py_DECREF(self->pydata);
742 Py_DECREF(copy->pydata);
743 743 return NULL;
744 744 }
745 745 if (PyObject_IsTrue(result)) {
General Comments 0
You need to be logged in to leave comments. Login now