Argh... missed a free.
This commit is contained in:
Родитель
905b68fa64
Коммит
1feb14b092
|
@ -535,9 +535,10 @@ nsresult nsSocketTransport::doResolveHost(void)
|
|||
PRNetAddr *netAddr = (PRNetAddr*)nsAllocator::Alloc(sizeof(PRNetAddr));
|
||||
status = PR_StringToNetAddr(mHostName, netAddr);
|
||||
if (PR_SUCCESS != status) {
|
||||
;
|
||||
rv = NS_ERROR_UNKNOWN_HOST; // check this!
|
||||
}
|
||||
status = PR_GetHostByAddr(netAddr, dbbuf, sizeof(dbbuf), &hostEnt);
|
||||
nsAllocator::Free(netAddr);
|
||||
} else {
|
||||
status = PR_GetHostByName(mHostName, dbbuf, sizeof(dbbuf), &hostEnt);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче