Closed
Bug 13294
Opened 25 years ago
Closed 25 years ago
MLK: Memory leak of 5 bytes -nsBrowserAppCore::OnEndDocumentLoad()
Categories
(SeaMonkey :: General, defect, P3)
SeaMonkey
General
Tracking
(Not tracked)
RESOLVED
FIXED
M11
People
(Reporter: bruce, Assigned: radha)
References
Details
1) char* scheme ends up shadowing itself. 2) it owns the memory it gets from the URL, so it needs to free it. [W] MLK: Memory leak of 5 bytes from 1 block allocated in PL_strdup Distribution of leaked blocks 5 bytes from 1 block of 5 bytes (0x097b1200) allocation number 210505 Allocation location malloc [dbgheap.c:129] PL_strdup [strdup.c:30] nsCRT::strdup(char const*) [nsCRT.h:151] nsStdURL::DupString(char * *,char *) [nsStdURL.cpp:673] nsStdURL::GetScheme(char * *) [nsStdURL.h:99] nsBrowserInstance::OnEndDocumentLoad(nsIDocumentLoader *,nsIChannel *,UINT,nsIDocumentLoaderObserver *) [nsBrowserInstance.cpp:1705] nsWebShell::OnEndDocumentLoad(nsIDocumentLoader *,nsIChannel *,UINT,nsIDocumentLoaderObserver *) [nsWebShell.cpp:3515] nsDocLoaderImpl::FireOnEndDocumentLoad(nsDocLoaderImpl *,UINT) [nsDocLoader.cpp:1228] nsDocLoaderImpl::OnStopRequest(nsIChannel *,nsISupports *,UINT,WORD const*) [nsDocLoader.cpp:1098] nsLoadGroup::RemoveChannel(nsIChannel *,nsISupports *,UINT,WORD const*) [nsLoadGroup.cpp:560] nsHTTPChannel::ResponseCompleted(nsIChannel *,UINT) [nsHTTPChannel.cpp:692] nsHTTPResponseListener::OnStopRequest(nsIChannel *,nsISupports *,UINT,WORD const*) [nsHTTPResponseListener.cpp:260] nsOnStopRequestEvent::HandleEvent(void) [nsAsyncStreamListener.cpp:268] nsStreamListenerEvent::HandlePLEvent(PLEvent *) [nsAsyncStreamListener.cpp:144] PL_HandleEvent [plevent.c:509]
Assignee | ||
Updated•25 years ago
|
Assignee: don → radha
Target Milestone: M12
Updated•25 years ago
|
Summary: MLK: nsBrowserAppCore::OnEndDocumentLoad() → MLK: Memory leak of 5 bytes -nsBrowserAppCore::OnEndDocumentLoad()
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M12 → M11
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 1•25 years ago
|
||
Code modified to use nsXPIDLCString.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•