Closed
Bug 129212
Opened 22 years ago
Closed 20 years ago
Memory leak of 9 bytes from 1 block allocated in nsMsgIMAPFolderACL::nsMsgIMAPFolderACL
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stephend, Assigned: mikael)
Details
(Keywords: memory-leak)
Attachments
(1 file)
1.47 KB,
patch
|
dmosedale
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
Build ID: Latest win32 tip (pulled after David's monster checkin to our URI code), under Purify. Steps to Reproduce: 1. Just launch an IMAP account (with no new messages). 2. Shutdown. [W] MLK: Memory leak of 9 bytes from 1 block allocated in PL_strdup Distribution of leaked blocks 9 bytes from 1 block of 9 bytes (0x09311048) Allocation location malloc [MSVCRT.DLL] PL_strdup [strdup.c:46] nsMsgIMAPFolderACL::SetFolderRightsForUser(char const*,char const*) [nsImapMailFolder.obj:4992] nsMsgIMAPFolderACL::BuildInitialACLFromCache(void) [nsImapMailFolder.obj:4931] nsMsgIMAPFolderACL::nsMsgIMAPFolderACL(nsImapMailFolder *) [nsImapMailFolder.cpp:4896] m_folder = folder; m_rightsHash = new nsHashtable(24); m_aclCount = 0; => BuildInitialACLFromCache(); } nsMsgIMAPFolderACL::~nsMsgIMAPFolderACL() nsImapMailFolder::ClearFolderRights(nsIImapProtocol *,nsIMAPACLRightsInfo *) [nsImapMailFolder.cpp:4468] { SetFolderNeedsACLListed(PR_FALSE); delete m_folderACL; => m_folderACL = new nsMsgIMAPFolderACL(this); return NS_OK; } ClearFolderRightsProxyEvent::HandleEvent(void) [nsImapProxyEvent.cpp:602] NS_IMETHODIMP ClearFolderRightsProxyEvent::HandleEvent() => { nsresult res = m_proxy->m_realImapExtensionSink->ClearFolderRights( m_proxy->m_protocol, &m_aclRightsInfo); if (m_notifyCompletion) nsImapEvent::imap_event_handler(PLEvent *) [nsImapProxyEvent.cpp:90] nsImapEvent::imap_event_handler(PLEvent *aEvent) { nsImapEvent* ev = (nsImapEvent*) aEvent; => ev->HandleEvent(); } void PR_CALLBACK PL_HandleEvent [plevent.c:590] PL_ProcessPendingEvents [plevent.c:520] md_EventReceiverProc [plevent.c:1071] DestroyWindow [USER32.dll] TranslateMessageEx [USER32.dll] DispatchMessageA [USER32.dll] DispatchMessageA [USER32.DLL] nsAppShell::Run(void) [nsAppShell.cpp:114] nsAppShellService::Run(void) [nsAppShellService.cpp:307] main1 [nsAppRunner.cpp:1288] main [nsAppRunner.cpp:1636] WinMain [nsAppRunner.cpp:1654]
Updated•20 years ago
|
Product: MailNews → Core
Assignee | ||
Comment 2•20 years ago
|
||
Looking at the code from time of bug report shows that a failed PL_strdup might trigger a leak. Since then code has been changed, but if 'ourUserName' is empty we would get a leak.. Attaching a fix.
Assignee: bienvenu → mikael
Assignee | ||
Comment 3•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #170121 -
Flags: superreview?(bienvenu)
Attachment #170121 -
Flags: review?(dmose)
Updated•20 years ago
|
Attachment #170121 -
Flags: superreview?(bienvenu) → superreview+
Comment 4•20 years ago
|
||
Comment on attachment 170121 [details] [diff] [review] fix r=dmose
Attachment #170121 -
Flags: review?(dmose) → review+
Comment 5•20 years ago
|
||
Fix checked in for 1.8b
Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•