[llvm] 1039282 - Fix memleak for 5de2d189e6ad4

Yuanfang Chen via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 16:52:24 PST 2021


Author: Yuanfang Chen
Date: 2021-03-01T16:51:56-08:00
New Revision: 103928252e2fa178783059a3bec8b92af55ffaf4

URL: https://github.com/llvm/llvm-project/commit/103928252e2fa178783059a3bec8b92af55ffaf4
DIFF: https://github.com/llvm/llvm-project/commit/103928252e2fa178783059a3bec8b92af55ffaf4.diff

LOG: Fix memleak for 5de2d189e6ad4

Fix typo `release` -> `reset`

Added: 
    

Modified: 
    llvm/lib/MC/MCContext.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 50f412789527..b0eb47069d7e 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -96,7 +96,7 @@ void MCContext::initInlineSourceManager() {
 
 void MCContext::reset() {
   SrcMgr = nullptr;
-  InlineSrcMgr.release();
+  InlineSrcMgr.reset();
   LocInfos.clear();
   DiagHandler = defaultDiagHandler;
 


        


More information about the llvm-commits mailing list