[Lldb-commits] [PATCH] D13617: Fix ref-counting of Python objects
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 9 19:49:54 PDT 2015
zturner added inline comments.
================
Comment at: source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:337
@@ -336,3 +346,3 @@
{
- PythonObject::Reset(PyLong_FromLongLong(value));
}
----------------
Just to provide one example, here is an instance of a fixed memory leak. `PyLong_FromLongLong` returns a new reference, not a borrowed one, but `PythonObject::Reset` would indiscriminately call `Py_INCREF`.
http://reviews.llvm.org/D13617
More information about the lldb-commits
mailing list