[PATCH] D97750: Fix memleak for 5de2d189e6ad4
kamlesh kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 1 17:01:54 PST 2021
kamleshbhalui created this revision.
Herald added a subscriber: hiraditya.
kamleshbhalui requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fix typo `release` -> `reset`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97750
Files:
llvm/lib/MC/MCContext.cpp
Index: llvm/lib/MC/MCContext.cpp
===================================================================
--- llvm/lib/MC/MCContext.cpp
+++ llvm/lib/MC/MCContext.cpp
@@ -96,7 +96,7 @@
void MCContext::reset() {
SrcMgr = nullptr;
- InlineSrcMgr.release();
+ InlineSrcMgr.reset();
LocInfos.clear();
DiagHandler = defaultDiagHandler;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97750.327327.patch
Type: text/x-patch
Size: 341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210302/4f99f505/attachment.bin>
More information about the llvm-commits
mailing list