Cleanup data
FossilOrigin-Name: 629c8537277cf9905ad942148944ce97d5eb21451b667ce0a15436f679efee22
This commit is contained in:
parent
b42d23ca02
commit
ce0cf6d3e4
3 changed files with 7 additions and 4 deletions
|
@ -58,6 +58,6 @@ void mstdnt_cleanup(mastodont_t* data);
|
|||
*/
|
||||
void mstdnt_storage_cleanup(struct mstdnt_storage* storage);
|
||||
|
||||
void mstdnt_request_cb_cleanup(mstdnt_request_cb_t* data);
|
||||
void mstdnt_request_cb_cleanup(mstdnt_request_cb_data* data);
|
||||
|
||||
#endif /* MASTODONT_H */
|
||||
|
|
|
@ -34,7 +34,10 @@ void mstdnt_storage_cleanup(struct mstdnt_storage* storage)
|
|||
}
|
||||
}
|
||||
|
||||
void mstdnt_request_cb_cleanup(mstdnt_request_cb_t* data)
|
||||
void mstdnt_request_cb_cleanup(mstdnt_request_cb_data* data)
|
||||
{
|
||||
|
||||
mstdnt_storage_cleanup(data->storage);
|
||||
free(data->storage);
|
||||
data->data_free_cb(data->data);
|
||||
free(data);
|
||||
}
|
||||
|
|
|
@ -165,5 +165,5 @@ cleanup:
|
|||
|
||||
/* Only free if params_query set */
|
||||
if (args->params_query) mstdnt_free(url_query);
|
||||
return res;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue