summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
diff options
context:
space:
mode:
authorSergey Dmitriev <serguei.n.dmitriev@intel.com>2019-09-11 16:03:21 +0000
committerSergey Dmitriev <serguei.n.dmitriev@intel.com>2019-09-11 16:03:21 +0000
commit0c1257f517e00f67c9fbb969671e85509a7f8ac9 (patch)
treea17123eebea7df29772a3aed4d25b6f345dc00db /lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
parent1be634044ddb1286e3f1759adf62c0755c3552bd (diff)
downloadbcm5719-llvm-0c1257f517e00f67c9fbb969671e85509a7f8ac9.tar.gz
bcm5719-llvm-0c1257f517e00f67c9fbb969671e85509a7f8ac9.zip
[Clang][Bundler] Fix for a potential memory leak [NFC]
Bundler leaks memory if it is called with -type=o but given input isn't an object file (though it has to have a known binary type like IR, archive, etc...). Memory leak is happening when binary object returned by the createBinary(...) call cannot be casted to an ObjectFile type. In this case returned BinaryOrErr object releases ownership of the binary, but no one is taking it (see line 626). Differential Revision: https://reviews.llvm.org/D67416 llvm-svn: 371633
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud