Do cleanup

FossilOrigin-Name: f2f0a5fe6227e4dd42bb635f65a9110189739cbb147e79bd0eaedfc03b11ddf8
This commit is contained in:
nekobit 2022-11-14 16:22:17 +00:00
parent c0ddc1bf5e
commit 4f21fb33c2

View file

@ -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);
}