Return our PythonObject wrappers instead of raw PyObjects (obfuscated as
void *). This ensures that ownership (reference counts) of python
objects is automatically tracked.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | ||
|---|---|---|
| 284 | fixed a leak here | |
| lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | ||
| 1442 | all of these were leaked | |
| 2159–2160 | I didn't convert this one now because LLDBSwigPythonCallTypeScript is doing something weird (and most likely incorrect) with reference counts. | |
| 2808 | Refactoring ExecuteOneLineWithReturn into something type-safe would be a bigger undertaking than all of the changes in this patch put together. | |
| lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.cpp | ||
| 54 | btw, all of the std::moves are just performance optimizations. They don't impact correctness. | |
fixed a leak here