    // Free post memory
    Post *curr_post = temp->first_post;
    Post *temp_post = temp->first_post;
    if (curr_post->next == NULL) {
        free(curr_post->date);
        free(curr_post);
    } else if (curr_post->next !=NULL) {
        while (curr_post->next != NULL) {
            temp_post = curr_post
            free(curr_post->date);
            free(curr_post);
            curr_post = temp_post->next;
        }
        free(curr_post->date);
        free(curr_post);
    }
delete all posts and free the memory