Closed Bug 978226 Opened 10 years ago Closed 10 years ago

Do not leak LazyScript table in CreateRaw if we fail to allocate the LazyScript

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: terrence, Assigned: terrence)

Details

Attachments

(1 file)

Uses a Scoped for minimal extra code and to prevent future mistakes as well.
Attachment #8383880 - Flags: review?(till)
Comment on attachment 8383880 [details] [diff] [review]
dont_leak_table_on_oom_in_CreateRaw-v0.diff

Review of attachment 8383880 [details] [diff] [review]:
-----------------------------------------------------------------

Good catch!
Attachment #8383880 - Flags: review?(till) → review+
https://hg.mozilla.org/mozilla-central/rev/53a4600c4cfd
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: