Closed Bug 176989 Opened 23 years ago Closed 23 years ago

string leak in nsHTMLDocument::StartDocumentLoad()

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: keeda, Assigned: jst)

Details

(Keywords: memory-leak, Whiteboard: [HAVE FIX])

Attachments

(1 file, 2 obsolete files)

nsHTMLDocument::StartDocumentLoad() appears to be leaking a string for some POST requests. This seems to have been introduced by the checkin for bug 162239. Patch that fixes the leak is coming up (but it might be better to just cleanup the nsIMarkupDocumentViewer to return appropriate string class instead of a raw string)
Attached patch plug small string leak (obsolete) — — Splinter Review
Keywords: mlk, patch
Comment on attachment 104318 [details] [diff] [review] plug small string leak Please use nsXPIDLString and getter_Copies for requestCharset instead.
Attached patch use nsXPIDLString (obsolete) — — Splinter Review
Attachment #104318 - Attachment is obsolete: true
> if (*requestCharset) { Make that |if (!requestCharset.IsEmpty())| while you're here, ok?
Attachment #104320 - Attachment is obsolete: true
Comment on attachment 104347 [details] [diff] [review] Doh! (fix late night braindamage) sr=bzbarsky. for the record, |if (*str)| _does_ work and even does the right thing for nsXPIDLC?String, but it's just very non-idiomatic. ;)
Attachment #104347 - Flags: superreview+
Comment on attachment 104347 [details] [diff] [review] Doh! (fix late night braindamage) r=peterv.
Attachment #104347 - Flags: review+
Whiteboard: [HAVE FIX]
Can someone please check this in for me. jst? peterv? bz?
Done. Sorry, I lost track of this one in my list of stuff to land.... Thanks for the ping.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: