Closed
Bug 16392
Opened 26 years ago
Closed 26 years ago
[MLK]Memory leak in mozilla/extensions/cookie/nsCookie.cpp COOKIE_GetCookie
Categories
(Core :: Networking: Cookies, defect, P3)
Tracking
()
M11
People
(Reporter: kherron+mozilla, Assigned: morse)
Details
Attachments
(1 file)
|
3.01 KB,
patch
|
Details | Diff | Splinter Review |
In mozilla/extensions/cookie/nsCookie.cpp, the function COOKIE_GetCookie()
calls cookie_ParseURL() twice early in the function, which returns a pointer
to dynamically allocated memory. COOKIE_GetCookie() can then return without
freeing these two blocks of memory.
The attached patch defers the cookie_ParseURL() calls until the values
they return are actually needed.
| Reporter | ||
Comment 1•26 years ago
|
||
| Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M11
| Assignee | ||
Updated•26 years ago
|
Summary: Memory leak in mozilla/extensions/cookie/nsCookie.cpp COOKIE_GetCookie → [MLK]Memory leak in mozilla/extensions/cookie/nsCookie.cpp COOKIE_GetCookie
| Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•26 years ago
|
||
[bugday] marking verified as they're the same leak/bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•