Bug 1422173 - Add comment mentioning leaked addr_info r=me

MozReview-Commit-ID: BFztnh9kO5C
This commit is contained in:
Valentin Gosu 2017-12-04 16:03:02 +01:00
parent 95aaaa5773
commit e7b318dddd

View File

@ -870,6 +870,9 @@ nsHostResolver::ResolveHost(const char *host,
// addr_info.
MutexAutoLock lock(he->rec->addr_info_lock);
// XXX: note that this actually leaks addr_info.
// For some reason, freeing the memory causes a crash in
// nsDNSRecord::GetNextAddr - see bug 1422173
he->rec->addr_info = nullptr;
if (unspecHe->rec->negative) {
he->rec->negative = unspecHe->rec->negative;