2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Fix memory leak.

Apparently, PyList_Append does not steal reference, after all.


[SVN r64151]
This commit is contained in:
Vladimir Prus
2010-07-19 08:58:05 +00:00
parent 5705bdd9ac
commit e02ecc2e25

View File

@@ -776,8 +776,8 @@ call_python_function(RULE* r, FRAME* frame)
for ( ; l; l = l->next )
{
PyObject * v = PyString_FromString(l->string);
/* Steals reference to 'v' */
PyList_Append( arg, v );
Py_DECREF(v);
}
/* Steals reference to 'arg' */
PyTuple_SetItem( arguments, i, arg );