Closed Bug 13294 Opened 26 years ago Closed 26 years ago

MLK: Memory leak of 5 bytes -nsBrowserAppCore::OnEndDocumentLoad()

Categories

(SeaMonkey :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

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: don → radha
Target Milestone: M12
Summary: MLK: nsBrowserAppCore::OnEndDocumentLoad() → MLK: Memory leak of 5 bytes -nsBrowserAppCore::OnEndDocumentLoad()
Blocks: 14516
Status: NEW → ASSIGNED
Target Milestone: M12 → M11
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Code modified to use nsXPIDLCString.
QA Contact: leger → gerardok
updating QA Contact for verification
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.