Memory leak of 40 bytes from 1 block allocated in nsSocketTransport::AsyncRead

NEW
Unassigned

Status

MailNews Core
Networking: IMAP
--
minor
16 years ago
8 years ago

People

(Reporter: stephend@netscape.com (gone - use stephen.donner@gmail.com instead), Unassigned)

Tracking

({memory-leak})

Trunk
x86
Windows 2000
memory-leak

Firefox Tracking Flags

(Not tracked)

Details

Build ID: Latest tip win32 build under Purify.

Summary: Memory leak of 40 bytes from 1 block allocated in 
nsSocketTransport::AsyncRead

Steps to Reproduce:

1. Send yourself mail to an IMAP account (this is part of the setup, not the 
leak), make sure you have 'check for new mail at startup' checked in the 
Account Manager.
2. Launch a fresh run of Mozilla -mail (this will have the new message appear 
in your INBOX).
3. Shutdown.

[W] MLK: Memory leak of 40 bytes from 1 block allocated in 
nsSocketTransport::AsyncRead(nsIStreamListener *,nsISupports 
*,UINT,UINT,UINT,nsIRequest * *)
    Distribution of leaked blocks
        40 bytes from 1 block of 40 bytes (0x0a9e6af8) 
    Allocation location
    new(UINT)      [MSVCRT.DLL]
    nsSocketTransport::AsyncRead(nsIStreamListener *,nsISupports 
*,UINT,UINT,UINT,nsIRequest * *) [nsSocketTransport.cpp:1644]
        }
    
        if (NS_SUCCEEDED(rv)) {
 =>         NS_NEWXPCOM(mReadRequest, nsSocketReadRequest);
            if (mReadRequest) {
                NS_ADDREF(mReadRequest);
                mReadRequest->SetTransport(this);
    nsImapProtocol::ProcessCurrentURL(void) [nsImapProtocol.cpp:1067]
          if (!TestFlag(IMAP_CONNECTION_IS_OPEN) && m_channel)
          {
            m_channel->AsyncRead(this /* stream listener */, nsnull, 0, PRUint32
(-1), 0,
     =>                          getter_AddRefs(mAsyncReadRequest));
            SetFlag(IMAP_CONNECTION_IS_OPEN);
          }
        #ifdef DEBUG_bienvenu
    nsImapProtocol::ImapThreadMainLoop(void) [nsImapProtocol.cpp:979]
            if (TestFlag(IMAP_FIRST_PASS_IN_THREAD) && m_runningUrl && 
m_channel)
            {
              // if we launched another url, just loop around and process it.
     =>       if (ProcessCurrentURL())
                continue;
              ClearFlag(IMAP_FIRST_PASS_IN_THREAD);
            }
    nsImapProtocol::Run(void) [nsImapProtocol.cpp:771]
            PR_CExitMonitor(me);
        
            // call the platform specific main loop ....
     =>     me->ImapThreadMainLoop();
        
            me->m_eventQueue->StopAcceptingEvents();
            me->m_eventQueue->ProcessPendingEvents();
    nsThread::Main(void *) [nsThread.cpp:120]
        
            PR_LOG(nsIThreadLog, PR_LOG_DEBUG,
                   ("nsIThread %p start run %p\n", self, self->mRunnable.get
()));
     =>     rv = self->mRunnable->Run();
            NS_ASSERTION(NS_SUCCEEDED(rv), "runnable failed");
        
        #ifdef DEBUG
    PR_NativeRunThread [pruthr.c:413]
    TlsSetValue    [KERNEL32.dll]
Keywords: mlk
QA Contact: huang → stephend
Product: MailNews → Core

Updated

10 years ago
Assignee: mscott → nobody
(Assignee)

Updated

9 years ago
Product: Core → MailNews Core

Updated

9 years ago
QA Contact: stephend → networking.imap

Updated

9 years ago
Severity: major → minor
You need to log in before you can comment on or make changes to this bug.