You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a) Utils::GetHostAddresses.cc:153 calls XrdNetUtils::GetAddrs(0 which returns XrdNetAddr*[] essentially a vector of pointers to XrdNetAddr objects.
b) Utils::GetHostAddresses.cc:194 copies objects of interest to std::vector result
c) In Utils::GetHostAddresses.cc:207 the vector returned by (a) is deleted. Unfortunately, only the pointer collection is deleted but the underlying objects it points to remain.
Hence we have a memory leak here. Utils::GetHostAddresses.cc needs to delete each individual object before deleting the vector which it does not. Fortunately, this memory leak is very slow so I am not tagging it as critical.
The text was updated successfully, but these errors were encountered:
a) Utils::GetHostAddresses.cc:153 calls XrdNetUtils::GetAddrs(0 which returns XrdNetAddr*[] essentially a vector of pointers to XrdNetAddr objects.
b) Utils::GetHostAddresses.cc:194 copies objects of interest to std::vector result
c) In Utils::GetHostAddresses.cc:207 the vector returned by (a) is deleted. Unfortunately, only the pointer collection is deleted but the underlying objects it points to remain.
Hence we have a memory leak here. Utils::GetHostAddresses.cc needs to delete each individual object before deleting the vector which it does not. Fortunately, this memory leak is very slow so I am not tagging it as critical.
The text was updated successfully, but these errors were encountered: