export JS_FreePropertyEnum()

This commit is contained in:
Fabrice Bellard
2025-05-20 17:59:48 +02:00
parent 9bce51eefd
commit 2f167bbeeb
3 changed files with 25 additions and 25 deletions

View File

@@ -2938,9 +2938,7 @@ static char **build_envp(JSContext *ctx, JSValueConst obj)
JS_FreeCString(ctx, str);
}
done:
for(i = 0; i < len; i++)
JS_FreeAtom(ctx, tab[i].atom);
js_free(ctx, tab);
JS_FreePropertyEnum(ctx, tab, len);
return envp;
fail:
if (envp) {