Description: fix CVE-2024-33263
 Commit from upstream b3715f7cb1f7e7e99fa5e768e3af3f6bb22ae50f.
 See <https://github.com/bellard/quickjs/issues/277>.
Author: Sebastian Humenda <shumenda@gmx.de>
Last-Update: 2024-07-15

Index: quickjs/quickjs.c
===================================================================
--- quickjs.orig/quickjs.c
+++ quickjs/quickjs.c
@@ -45943,8 +45943,10 @@ static JSValue js_proxy_get(JSContext *c
     if (JS_IsException(ret))
         return JS_EXCEPTION;
     res = JS_GetOwnPropertyInternal(ctx, &desc, JS_VALUE_GET_OBJ(s->target), atom);
-    if (res < 0)
+    if (res < 0) {
+        JS_FreeValue(ctx, ret);
         return JS_EXCEPTION;
+    }
     if (res) {
         if ((desc.flags & (JS_PROP_GETSET | JS_PROP_CONFIGURABLE | JS_PROP_WRITABLE)) == 0) {
             if (!js_same_value(ctx, desc.value, ret)) {
