##// END OF EJS Templates
lazymanifest: check more return values in filtercopy...
Augie Fackler -
r27661:abc79f44 default
parent child Browse files
Show More
@@ -707,11 +707,13 b' static lazymanifest *lazymanifest_filter'
707 707 copy->pydata = self->pydata;
708 708 Py_INCREF(self->pydata);
709 709 for (i = 0; i < self->numlines; i++) {
710 PyObject *arg = PyString_FromString(self->lines[i].start);
711 PyObject *arglist = PyTuple_Pack(1, arg);
712 PyObject *result = PyObject_CallObject(matchfn, arglist);
710 PyObject *arglist = NULL, *result = NULL;
711 arglist = Py_BuildValue("(s)", self->lines[i].start);
712 if (!arglist) {
713 return NULL;
714 }
715 result = PyObject_CallObject(matchfn, arglist);
713 716 Py_DECREF(arglist);
714 Py_DECREF(arg);
715 717 /* if the callback raised an exception, just let it
716 718 * through and give up */
717 719 if (!result) {
General Comments 0
You need to be logged in to leave comments. Login now