Fixed a leak in JS blob store.

This commit is contained in:
Cory McWilliams 2024-03-18 12:46:12 -04:00
parent c32e1b9583
commit e8ef7e74de

View File

@ -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);
}