id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4259,Reference leak in boost::python::function::add_to_namespace(),Amaury Forgeot d'Arc ,Ralf W. Grosse-Kunstleve,"In libs/python/src/object/function.cpp, there is an obvious reference leak: https://svn.boost.org/trac/boost/browser/trunk/libs/python/src/object/function.cpp?rev=60625#L444 The first branch retrieves a borrowed reference, when the seconds gets a new reference. This is stored in a plain `PyObject*`, there is no magic in some destructor. This code is likely to leak references. I suggest to use `dict = PyObject_GetAttrString(ns, ""__dict__"")` in all cases, and add `Py_DECREF(dict)` when it is no more needed.",Patches,new,Boost 1.43.0,python USE GITHUB,Boost 1.44.0,Problem,,,