if (PyCFunction_Check(meth)) {
return (PyObject*)((PyCFunctionObject *)meth);
}
+ Py_DECREF(meth);
}
return NULL;
}
ProfilerObject *self = ProfilerObject_CAST(op);
Py_VISIT(Py_TYPE(op));
Py_VISIT(self->externalTimer);
+ Py_VISIT(self->missing);
+
return 0;
}
flush_unmatched(self);
clearEntries(self);
+ Py_XDECREF(self->missing);
Py_XDECREF(self->externalTimer);
PyTypeObject *tp = Py_TYPE(self);
tp->tp_free(self);
if (!monitoring) {
return -1;
}
- self->missing = PyObject_GetAttrString(monitoring, "MISSING");
+ Py_XSETREF(self->missing, PyObject_GetAttrString(monitoring, "MISSING"));
if (!self->missing) {
Py_DECREF(monitoring);
return -1;