Some of the setattr functions created a tuple to pass to the set* functions and didn't decref'ed it properly, "leaking" memory.

Commit approved by stivs.
This commit is contained in:
2005-06-17 05:10:14 +00:00
parent 2a640f03cd
commit 5f5844b95e
9 changed files with 202 additions and 161 deletions

View File

@@ -309,7 +309,7 @@ int BuildSetAttr( BPy_Build * self, char *name, PyObject * value )
( PyExc_KeyError, "attribute not found" ) );
}
/* Py_DECREF(valtuple); */
Py_DECREF(valtuple);
if( error != Py_None )
return -1;