Construct the unique_ptr's in LLVMCreateDisasmCPUFeatures to avoid leaks if it fails.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D63795
Fix leaks in LLVMCreateDisasmCPUFeatures ClosedPublic Authored by scott.linder on Jun 25 2019, 3:08 PM.
Details Summary Construct the unique_ptr's in LLVMCreateDisasmCPUFeatures to avoid leaks if it fails.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 25 2019, 4:07 PM Closed by commit rL364444: Fix leaks in LLVMCreateDisasmCPUFeatures (authored by scott.linder). · Explain WhyJun 26 2019, 9:13 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 206696 llvm/trunk/lib/MC/MCDisassembler/Disassembler.h
llvm/trunk/lib/MC/MCDisassembler/Disassembler.cpp
|