mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
[readobj] Fix memory leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -240,7 +240,8 @@ int main(int argc, char** argv) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectFile *obj = ObjectFile::createObjectFile(File.take());
|
OwningPtr<ObjectFile> o(ObjectFile::createObjectFile(File.take()));
|
||||||
|
ObjectFile *obj = o.get();
|
||||||
if (!obj) {
|
if (!obj) {
|
||||||
errs() << InputFilename << ": Object type not recognized\n";
|
errs() << InputFilename << ": Object type not recognized\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user