This is an archive of the discontinued LLVM Phabricator instance.

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 Timeline

scott.linder created this revision.Jun 25 2019, 3:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2019, 3:08 PM
arsenm accepted this revision.Jun 25 2019, 4:07 PM
This revision is now accepted and ready to land.Jun 25 2019, 4:07 PM
This revision was automatically updated to reflect the committed changes.