streamParse leaks ToNewCString(globalStream)

RESOLVED FIXED

Status

()

Core
Networking
--
trivial
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

({coverity, memory-leak})

Trunk
x86
Mac OS X
coverity, memory-leak
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
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;
(Assignee)

Comment 1

8 years ago
Created attachment 455311 [details] [diff] [review]
it's a const
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #455311 - Flags: review?(cbiesinger)
Attachment #455311 - Flags: review?(cbiesinger) → review+
(Assignee)

Comment 2

8 years ago
http://hg.mozilla.org/mozilla-central/rev/2bac72c69708
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.