diff --git a/src/ssb.js.c b/src/ssb.js.c index 68321065..39975d90 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -502,6 +502,7 @@ static void _tf_ssb_sqlAsync_after_work(uv_work_t* work, int status) JSValue response = JS_Call(context, sql_work->callback, JS_UNDEFINED, 1, &row); tf_util_report_error(context, response); + JS_FreeValue(context, response); JS_FreeValue(context, row); } else