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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user