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)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 16348

People

(Reporter: kherron+mozilla, Assigned: morse)

Details

Attachments

(1 file)

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.
Status: NEW → ASSIGNED
Target Milestone: M11
Summary: Memory leak in mozilla/extensions/cookie/nsCookie.cpp COOKIE_GetCookie → [MLK]Memory leak in mozilla/extensions/cookie/nsCookie.cpp COOKIE_GetCookie
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 16348 ***
Status: RESOLVED → VERIFIED
[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.

Attachment

General

Creator:
Created:
Updated:
Size: