From e8ef7e74de72e0c8d8c4d2860cfa8f020e0fc19d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 18 Mar 2024 12:46:12 -0400 Subject: [PATCH] Fixed a leak in JS blob store. --- src/ssb.js.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssb.js.c b/src/ssb.js.c index 464021d0b..1b1e7f50d 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -415,6 +415,7 @@ static void _tf_ssb_blob_store_complete(blob_store_t* store, const char* id) { JSValue id_value = JS_NewString(store->context, id); JSValue result = JS_Call(store->context, store->promise[0], JS_UNDEFINED, 1, &id_value); + JS_FreeValue(store->context, id_value); tf_util_report_error(store->context, result); JS_FreeValue(store->context, result); }