Don't leak promises.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4752 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2024-01-10 02:49:44 +00:00
parent b40457d774
commit a0af058f5e

View File

@ -1682,6 +1682,9 @@ static void _tf_ssb_following_after_work(uv_work_t* work, int status)
JS_FreeValue(context, message);
}
JS_FreeValue(context, following->promise[0]);
JS_FreeValue(context, following->promise[1]);
for (int i = 0; i < following->ids_count; i++)
{
tf_free((void*)following->ids[i]);