From ce6b0e08bd562a3d004837a35c1b22e240aa5a61 Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Wed, 18 Oct 2023 09:43:16 +0000 Subject: [PATCH] double free --- src/js/openenclave.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/js/openenclave.cpp b/src/js/openenclave.cpp index b78f7605e72d..d35382429c8c 100644 --- a/src/js/openenclave.cpp +++ b/src/js/openenclave.cpp @@ -219,7 +219,6 @@ namespace ccf::js auto rc1 = JS_SetPropertyStr(ctx, r, "customClaims", js_custom_claims); if (rc1 < 0) { - JS_FreeValue(ctx, js_claims); JS_FreeValue(ctx, js_custom_claims); JS_FreeValue(ctx, r); return ccf::js::constants::Exception;