Closed
Bug 260900
Opened 21 years ago
Closed 21 years ago
Memory leak happens when mozilla runs.
Categories
(Core :: XPConnect, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: andrew.tong, Assigned: dbradley)
Details
Attachments
(1 obsolete file)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040917
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040917
I have used valgrind2.2.0 to detect memory leaks in mozilla and found this problem.
Reproducible: Always
Steps to Reproduce:
1.run mozilla under valgrind2.2.0, while set "--tool=memcheck" in valgrind.
2.read the report supplied by valgrind.
3.run mozilla under gdb.
Actual Results:
memory leak
Comment 1•21 years ago
|
||
So what leaks, exactly?
| Assignee | ||
Comment 2•21 years ago
|
||
And keep in mind there are a number of one time leaks that due to our current
shutdown situation can't be addressed.
| Reporter | ||
Comment 3•21 years ago
|
||
Comment 4•21 years ago
|
||
per http://www.mozilla.org/js/spidermonkey/apidoc/gen/api-JS_GetStringBytes.html
the result of JS_GetStringBytes should not be free'd. this patch seems to be wrong.
Comment 5•21 years ago
|
||
The patch is invalid, as biesi said. The bug as written is invalid, too -- no
evidence, no acknowledgement of tool pointer-tracing limitations, and no
acknowledgement of existing bugs on shutdown leaks.
/be
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 6•21 years ago
|
||
Comment on attachment 160216 [details] [diff] [review]
free the memory
Can you review this patch, please?
Attachment #160216 -
Flags: review?(shaver)
Comment 7•21 years ago
|
||
Comment on attachment 160216 [details] [diff] [review]
free the memory
Sorry, no. Please see biesi and brendan's comments.
(I guess I _am_ reviewing this patch, though.)
Attachment #160216 -
Attachment is obsolete: true
Attachment #160216 -
Flags: review?(shaver) → review-
You need to log in
before you can comment on or make changes to this bug.
Description
•