[PATCH v9 3/8] jscript: Fix function leak in scope_init_locals.