On Darwin scandir(3) allocates the memory for the dirent pointers
and does not release it even if it returns 0 entries to the caller.
__pmLogFindLocalPorts leaks that memory if scandir(3) returns 0
which only happens if there is no pmloggers running.
Plug a memory drip when looking for pmloggers
On Darwin scandir(3) allocates the memory for the dirent pointers
and does not release it even if it returns 0 entries to the caller.
__pmLogFindLocalPorts leaks that memory if scandir(3) returns 0
which only happens if there is no pmloggers running.