Closed Bug 575633 Opened 10 years ago Closed 10 years ago

streamParse leaks ToNewCString(globalStream)

Categories

(Core :: Networking, defect, trivial)

x86
macOS
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity, memory-leak)

Attachments

(1 file)

82 static NS_METHOD streamParse (nsIInputStream* in,

92   char *tmp;

94   if(!globalStream.IsEmpty()) {
95     globalStream.Append(fromRawSegment);
96     tmp = ToNewCString(globalStream);

102   while(i < (int)count) {
104     if(i < 0) {
106       return NS_OK;

154   return NS_OK;
Attached patch it's a constSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #455311 - Flags: review?(cbiesinger)
Attachment #455311 - Flags: review?(cbiesinger) → review+
http://hg.mozilla.org/mozilla-central/rev/2bac72c69708
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.