No one is calling this function it seems and according to https://bugs.llvm.org/show_bug.cgi?id=47088 this can leak memory, so let's just remove it:
Quote from the bug report:
Before return on line 146, the memory allocated on line 130 is not freed.
Paths
| Differential D85633
[lldb][NFC] Remove unused custom reimplementation of realpath for Windows ClosedPublic Authored by teemperor on Aug 10 2020, 2:42 AM.
Details Summary No one is calling this function it seems and according to https://bugs.llvm.org/show_bug.cgi?id=47088 this can leak memory, so let's just remove it: Quote from the bug report:
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 10 2020, 9:26 AM Closed by commit rG51117e3c5175: [lldb][NFC] Remove unused custom reimplementation of realpath for Windows (authored by teemperor). · Explain WhyAug 11 2020, 1:05 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 284599 lldb/include/lldb/Host/windows/PosixApi.h
lldb/source/Host/windows/Windows.cpp
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||