Closed Bug 564070 Opened 14 years ago Closed 14 years ago

_getvalueforurl needlessly clones an owned string

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file)

After _getvalueforurl retrieves the cookie string from the cookie service, it then clones it. In fact the original string was a better match for the return value, as it was allocated with NS_Alloc instead of PR_Malloc.
Attached patch Proposed patchSplinter Review
The first change is just a pedantic correctness fix.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #443761 - Flags: review?(jst)
Attachment #443761 - Flags: review?(jst) → review+
Pushed changeset c5976fc3311c to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: