Closed
Bug 109496
Opened 23 years ago
Closed 23 years ago
Memory leak of 24 bytes from 1 block allocated in nsSocketReadRequest::SetSocket
Categories
(Core :: Networking, defect)
Tracking
()
VERIFIED
WORKSFORME
mozilla0.9.9
People
(Reporter: stephend, Assigned: neeti)
Details
Windows 2000, latest trunk CVS, saw this just using IMAP to read 2 IMAP message
with JPG attachments.
[W] MLK: Memory leak of 24 bytes from 1 block allocated in
nsSocketReadRequest::SetSocket(PRFileDesc *)
Distribution of leaked blocks
Allocation location
new(UINT) [msvcrt.DLL]
nsSocketReadRequest::SetSocket(PRFileDesc *)
[nsSocketTransport.cpp:2706]
nsSocketReadRequest::SetSocket(PRFileDesc *aSock)
{
if (!mInputStream) {
=> NS_NEWXPCOM(mInputStream, nsSocketIS);
if (mInputStream) {
NS_ADDREF(mInputStream);
mInputStream->SetSocket(aSock);
nsSocketTransport::doReadWrite(short) [nsSocketTransport.cpp:1054]
else if (!mReadRequest->IsInitialized()) {
mSelectFlags |= PR_POLL_READ;
mReadRequest->OnStart();
=> mReadRequest->SetSocket(mSocketFD);
readStatus = NS_BASE_STREAM_WOULD_BLOCK;
}
}
nsSocketTransport::Process(short) [nsSocketTransport.cpp:518]
LOG(("nsSocketTransport: Transport [host=%s:%d
this=%x] "
"is in WaitReadWrite state [readtype=%x
writetype=%x status=%x].\n",
mHostName, mPort, this, GetReadType(),
GetWriteType(), mStatus));
=> mStatus = doReadWrite(aSelectFlags);
break;
case eSocketState_Timeout:
??? [ip=0x09013a38]
nsSocketTransportService::Run(void)
[nsSocketTransportService.cpp:505]
pfd->out_flags = 0;
if (transport) {
=> rv = transport->Process(out_flags);
if (NS_BASE_STREAM_WOULD_BLOCK == rv) {
// Update the select flags...
pfd->in_flags = transport->GetSelectFlags();
| Reporter | ||
Comment 1•23 years ago
|
||
I don't see this anymore with the latest trunk build on Windows 2000 under
Purify.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•