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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to