From 82eb9ac9f289b70a0bf3daa3a24f6b1fb7f1b574 Mon Sep 17 00:00:00 2001 From: nekobit Date: Fri, 4 Nov 2022 18:11:51 +0000 Subject: [PATCH] Progress FossilOrigin-Name: dc24939b1ca1f32f6ebe9e199572e6c83c701f79197df7ea908f4b8a7288fe87 --- src/main.c | 3 ++- src/timeline.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index c08c8c7..eb0f93b 100644 --- a/src/main.c +++ b/src/main.c @@ -222,9 +222,10 @@ static void fcgi_start(mastodont_t* api) if (rc == 0) { - FCGX_Finish_r(req); free(req); + FCGX_Finish_r(req); } + } } } diff --git a/src/timeline.c b/src/timeline.c index 7059d3f..17a02a7 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -139,10 +139,9 @@ static void request_cb_tl_public(mstdnt_request_cb_data* cb_data, void* tbargs) struct mstdnt_statuses* statuses = MSTDNT_CB_DATA(cb_data); DESTRUCT_TB_ARGS(tbargs); - free(42); - free(cb_data); + PUT(":worm: wow!"); - content_timeline(req, ssn, api, cb_data->storage, statuses->statuses, statuses->len, 0, NULL, 1, 0); + //content_timeline(req, ssn, api, cb_data->storage, statuses->statuses, statuses->len, 0, NULL, 1, 0); mstdnt_request_cb_cleanup(cb_data); }