aboutsummaryrefslogblamecommitdiff
path: root/src/post.c
blob: e2f9d9731b2ae0fa2bfe1dc79112815c574ec71a (plain) (tree)


















                                        
#include "post.h"

#include <stdlib.h>

void free_post_item(post_item_t* item) {
  if (item != NULL) {
    if (item->title != NULL) {
      free(item->title);
    }

    if (item->description != NULL) {
      free(item->description);
    }

    if (item->url != NULL) {
      free(item->url);
    }
  }
}