[Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

Francis Ricci via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 24 15:22:32 PDT 2016

fjricci added a comment.

When we pass the `FILE*` to `SetImmediateOutputFile`, it then generates a new `File` from this `FILE*`, but doesn't take ownership, because the transfer_ownership flag is always false. And the `File` destructor only closes files if it has ownership of the `FILE*`.


More information about the lldb-commits mailing list