From 17414032060015411c4bb97ca41b754c904f7f2c Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 15 Feb 2023 02:59:46 +0000 Subject: [PATCH] More memory leaks. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4179 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.js.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssb.js.c b/src/ssb.js.c index 39975d90..41537bee 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -515,6 +515,7 @@ static void _tf_ssb_sqlAsync_after_work(uv_work_t* work, int status) JSValue result = JS_Call(context, sql_work->promise[0], JS_UNDEFINED, 0, NULL); tf_util_report_error(context, result); + JS_FreeValue(context, result); JS_FreeValue(context, sql_work->promise[0]); JS_FreeValue(context, sql_work->promise[1]); JS_FreeValue(context, sql_work->callback); @@ -591,6 +592,7 @@ static JSValue _tf_ssb_sqlAsync(JSContext* context, JSValueConst this_val, int a { JSValue call_result = JS_Call(context, work->promise[1], JS_UNDEFINED, 1, &error_value); tf_util_report_error(context, call_result); + JS_FreeValue(context, call_result); JS_FreeValue(context, work->promise[0]); JS_FreeValue(context, work->promise[1]); JS_FreeValue(context, work->callback);