mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 18:48:13 +00:00
[readobj] Fix memory leak.
llvm-svn: 174687
This commit is contained in:
parent
31f316c3d9
commit
a0c14567a5
@ -240,7 +240,8 @@ int main(int argc, char** argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
ObjectFile *obj = ObjectFile::createObjectFile(File.take());
|
||||
OwningPtr<ObjectFile> o(ObjectFile::createObjectFile(File.take()));
|
||||
ObjectFile *obj = o.get();
|
||||
if (!obj) {
|
||||
errs() << InputFilename << ": Object type not recognized\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user