Files
clang-p2996/lldb/source/Commands/CommandObjectPlatform.cpp
Jordan Rupprecht 23f145daa5 [NFC] Fix leak in command options configuration.
`m_options.Append(new OptionPermissions())` leaks because the pointer passed in is not owned. Use a class member to ensure lifetime, which is the common pattern used for this API.

Found by the LLDB command interpreter fuzzer. The fuzz input is running `ap $` twice.
2022-12-08 16:37:43 -08:00

67 KiB