diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-05-20 17:59:48 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-05-20 17:59:48 +0200 |
commit | 2f167bbeeb7dbe69b2306332a8c708cd99d9fde0 (patch) | |
tree | cdb3b92a62a37160cf5ce0982796e3635cc0bfce /quickjs-libc.c | |
parent | 9bce51eefdbf38d44aa02cf34af81aafb7b7db33 (diff) | |
download | quickjs-2f167bbeeb7dbe69b2306332a8c708cd99d9fde0.tar.gz quickjs-2f167bbeeb7dbe69b2306332a8c708cd99d9fde0.zip |
export JS_FreePropertyEnum()
Diffstat (limited to 'quickjs-libc.c')
-rw-r--r-- | quickjs-libc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/quickjs-libc.c b/quickjs-libc.c index 7393c00..03ce012 100644 --- a/quickjs-libc.c +++ b/quickjs-libc.c @@ -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) { |