Closed Bug 1072696 Opened 10 years ago Closed 10 years ago

Do not leak debugScopes if init fails

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: terrence, Assigned: terrence)

Details

Attachments

(1 file)

If we do not free and clear debugScopes after DebugScopes::init fails, then we will try to sweep debugScopes, but the liveScopes and missingScopes tables may not be initialized. I did not actually encounter this issue, just noticed it when debugging something else.
Attachment #8494886 - Flags: review?(jcoppeard)
Comment on attachment 8494886 [details] [diff] [review]
fix_debugScopes_init_leak-v0.diff

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

Nice catch.
Attachment #8494886 - Flags: review?(jcoppeard) → review+
https://hg.mozilla.org/mozilla-central/rev/5e0e2eacb900
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: