This revision was automatically updated to reflect the committed changes. Closed by commit rG2cfcbe295a31: [LLDB][NFC] Fix possible resource leak (authored by fixathon).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130655/new/ https://reviews.llvm.org/D130655 Files: lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp Index: lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp =================================================================== --- lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp +++ lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp @@ -102,8 +102,6 @@ // This objfile is for debugging purposes. dsym_objfile_sp->SetType(ObjectFile::eTypeDebugInfo); - SymbolVendorPECOFF *symbol_vendor = new SymbolVendorPECOFF(module_sp); - // Get the module unified section list and add our debug sections to // that. SectionList *module_section_list = module_sp->GetSectionList(); @@ -132,6 +130,7 @@ } } + SymbolVendorPECOFF *symbol_vendor = new SymbolVendorPECOFF(module_sp); symbol_vendor->AddSymbolFileRepresentation(dsym_objfile_sp); return symbol_vendor; }
Index: lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp =================================================================== --- lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp +++ lldb/source/Plugins/SymbolVendor/PECOFF/SymbolVendorPECOFF.cpp @@ -102,8 +102,6 @@ // This objfile is for debugging purposes. dsym_objfile_sp->SetType(ObjectFile::eTypeDebugInfo); - SymbolVendorPECOFF *symbol_vendor = new SymbolVendorPECOFF(module_sp); - // Get the module unified section list and add our debug sections to // that. SectionList *module_section_list = module_sp->GetSectionList(); @@ -132,6 +130,7 @@ } } + SymbolVendorPECOFF *symbol_vendor = new SymbolVendorPECOFF(module_sp); symbol_vendor->AddSymbolFileRepresentation(dsym_objfile_sp); return symbol_vendor; }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits