From 4f21fb33c2c36b42ea1fac954a4c067f6f6457dc Mon Sep 17 00:00:00 2001 From: nekobit Date: Mon, 14 Nov 2022 16:22:17 +0000 Subject: [PATCH] Do cleanup FossilOrigin-Name: f2f0a5fe6227e4dd42bb635f65a9110189739cbb147e79bd0eaedfc03b11ddf8 --- src/fetch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fetch.c b/src/fetch.c index 9787e95..aa4fd62 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -209,9 +209,10 @@ int mstdnt_await(mastodont_t* mstdnt, void mstdnt_storage_cleanup(struct mstdnt_storage* storage); -void mstdnt_request_cb_cleanup(mstdnt_request_cb_data* data) +void +mstdnt_request_cb_cleanup(mstdnt_request_cb_data* data) { mstdnt_storage_cleanup(data->storage); - //data->data_free_cb(data->data, 0); - /* free(data); */ + data->data_free_cb(data->data); + free(data); }