in
4550983e0ce2f35b3585e53894c941c23693e71d we
added a new attribute key_style. remove an erroneous
Py_INCREF when we acquire it from PyLong_FromLong
as we already own the reference. since this
is a new reference we actualy need to Py_DECREF
it because we aren't returning it.
Change-Id: I61470513a173c76863ec6f7f5ff9b2ec13582f08
row_class = PyObject_GetAttrString(sqlalchemy_engine_row, "Row");
key_style = PyLong_FromLong(self->key_style);
- Py_INCREF(key_style);
new_obj = PyObject_CallFunction(
row_class, "OOOOO", self->parent, filters, self->keymap,
key_style, self->row);
+ Py_DECREF(key_style);
Py_DECREF(row_class);
if (new_obj == NULL) {
return NULL;