forked from mirrors/treebird
Cleanup statuses
FossilOrigin-Name: fb6756b4bc28fc432660265beb01911fa5cd60150fc1db9ea4253020bedc836f
This commit is contained in:
parent
35ddf4d7c3
commit
f96faabc73
3 changed files with 5 additions and 0 deletions
|
@ -105,5 +105,6 @@ void content_account(mastodont_t* api, char** data, size_t size)
|
|||
/* Cleanup */
|
||||
mastodont_storage_cleanup(&storage);
|
||||
mastodont_storage_cleanup(&status_storage);
|
||||
cleanup_statuses(statuses, status_len);
|
||||
if (cleanup) free(account_page);
|
||||
}
|
||||
|
|
|
@ -226,5 +226,8 @@ void content_status(mastodont_t* api, char** data, size_t data_size, int is_repl
|
|||
if (after_html) free(after_html);
|
||||
if (output) free(output);
|
||||
if (is_reply) free(stat_reply);
|
||||
cleanup_statuses(statuses_before, stat_before_len);
|
||||
cleanup_statuses(statuses_after, stat_after_len);
|
||||
cleanup_status(&status);
|
||||
mastodont_storage_cleanup(&storage);
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@ void tl_public(mastodont_t* api, int local)
|
|||
|
||||
// Cleanup
|
||||
mastodont_storage_cleanup(&storage);
|
||||
cleanup_statuses(statuses, status_count);
|
||||
if (cleanup) free(status_format);
|
||||
if (post_box) free(post_box);
|
||||
if (output) free(output);
|
||||
|
|
Loading…
Reference in a new issue