llvm.org GIT mirror llvm / dc0f8a3
[readobj] Fix memory leak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174687 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 7 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
239239 return 1;
240240 }
241241
242 ObjectFile *obj = ObjectFile::createObjectFile(File.take());
242 OwningPtr o(ObjectFile::createObjectFile(File.take()));
243 ObjectFile *obj = o.get();
243244 if (!obj) {
244245 errs() << InputFilename << ": Object type not recognized\n";
245246 }