summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
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
commit3ba34f33aab0c8749dbbb653d74f55c826e3f87a (patch)
tree7730b8db0317829c5ddbcc7bd9df5c2d4d91af5f /lib/Frontend/CompilerInvocation.cpp
parent4f55c04f204e80cfe7d816864dffdbcc514001b6 (diff)
downloadclang-3ba34f33aab0c8749dbbb653d74f55c826e3f87a.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions