Print

Print


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<XrdNetAddr> 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.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1265

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1