aboutsummaryrefslogtreecommitdiff
path: root/src/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/post.c b/src/post.c
new file mode 100644
index 0000000..e2f9d97
--- /dev/null
+++ b/src/post.c
@@ -0,0 +1,19 @@
1#include "post.h"
2
3#include <stdlib.h>
4
5void free_post_item(post_item_t* item) {
6 if (item != NULL) {
7 if (item->title != NULL) {
8 free(item->title);
9 }
10
11 if (item->description != NULL) {
12 free(item->description);
13 }
14
15 if (item->url != NULL) {
16 free(item->url);
17 }
18 }
19}