[Lldb-commits] [PATCH] D131900: [LLDB][NFC] Fix memory leak in IntstumentationRuntimeTSan.cpp

Slava Gurevich via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 15 14:00:41 PDT 2022


fixathon planned changes to this revision.
fixathon marked 2 inline comments as done.
fixathon added a comment.

I am going to clean up the code in the entire file where **raw pointers** should be **shared_ptr** (because they get cast to shared_ptr anyways). Also planning to convert the **naked new** and the 2-step **shared_ptr** creation to **make_shared<>** ; the former is less-safe for potential leaks, and the latter is strictly better.

@JDevlieghere Yes, some of these planned raw pointer changes could be **unique_ptr**, but these types are already typedef-ed in StructuredData.h as **shared_ptr** and I'd like to preserve the style in the absence of specific know performance issues in this code.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131900/new/

https://reviews.llvm.org/D131900



More information about the lldb-commits mailing list