diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2022-12-08 16:37:43 -0800 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2022-12-08 16:37:43 -0800 |
commit | 23f145daa50c3f51a7fb8c8d68c55e5f4a8027c2 (patch) | |
tree | a88014e7a61ad686fcacb5813df8cfaac16363a1 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 3b14862f0a968dc079530acbce4f2ca4aa7c1492 (diff) | |
download | llvm-23f145daa50c3f51a7fb8c8d68c55e5f4a8027c2.zip llvm-23f145daa50c3f51a7fb8c8d68c55e5f4a8027c2.tar.gz llvm-23f145daa50c3f51a7fb8c8d68c55e5f4a8027c2.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions