diff --git a/src/ssb.js.c b/src/ssb.js.c index 1df7ff84..4f4ab00e 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -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]);