From 84aec0278d57ec33a4ad69c198e4cbe442893f5b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 12 Apr 2023 23:28:58 +0000 Subject: [PATCH] Free earlier. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4257 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.rpc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index 4945d40d..db825207 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -822,6 +822,7 @@ static void _tf_ssb_rpc_ebt_replicate_send_clock(tf_ssb_connection_t* connection tf_ssb_db_get_latest_message_by_author(ssb, visible[i], &sequence, NULL, 0); JS_SetPropertyStr(context, full_clock, visible[i], JS_NewInt64(context, sequence == -1 ? -1 : (sequence << 1))); } + tf_free(visible); /* Ask about the incoming connection, too. */ char id[k_id_base64_len] = ""; @@ -867,8 +868,6 @@ static void _tf_ssb_rpc_ebt_replicate_send_clock(tf_ssb_connection_t* connection js_free(context, ptab); } - tf_free(visible); - tf_ssb_connection_rpc_send_json(connection, k_ssb_rpc_flag_stream, -request_number, full_clock, NULL, NULL, NULL); JS_FreeValue(context, full_clock); }