Closed
Bug 82524
Opened 24 years ago
Closed 24 years ago
Memory leak in nsMsgNewsFolder::SetCachedNewsrcLine
Categories
(MailNews Core :: Networking: NNTP, defect)
MailNews Core
Networking: NNTP
Tracking
(Not tracked)
People
(Reporter: bratell, Assigned: sspitzer)
Details
(Keywords: memory-leak)
nsMsgNewsFolder::SetCachedNewsrcLine(const char *newsrcLine) doesn't check if
mCachedNewsrcLine already has a value which it might have. It has when called
with the stack:
nsMsgNewsFolder::SetCachedNewsrcLine(...) line 1554
nsMsgNewsFolder::UpdateSummaryFromNNTPInfo(...) line 872 + 25 bytes
nsNntpIncomingServer::DisplaySubscribedGroup(...) line 663 + 24 bytes
Patch:
if (!newsrcLine) return NS_ERROR_NULL_POINTER;
+ PR_FREEIF(mCachedNewsrcLine);
mCachedNewsrcLine = nsCRT::strdup(newsrcLine);
if (!mCachedNewsrcLine) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
| Reporter | ||
Updated•24 years ago
|
Keywords: mlk,
mozilla0.9.2
Comment 1•24 years ago
|
||
I believe this is a duplicate of bug 66867 which already has a fix attached.
Comment 2•24 years ago
|
||
I'm sure it is. Duplicating.
*** This bug has been marked as a duplicate of 66867 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Yes, a dup.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•