From 27de6593b1940d64883ea2b275870d35cbbd6387 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 27 Feb 2018 18:57:10 +1000 Subject: [PATCH] forgot to free blog entries --- src/www_blog.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/www_blog.c b/src/www_blog.c index e914ca3..b0a0069 100644 --- a/src/www_blog.c +++ b/src/www_blog.c @@ -90,6 +90,14 @@ char *www_blog() { strcat(page, buffer); len += strlen(buffer); } + + for (i=0;isubject); + free(blog_entries[i]->author); + free(blog_entries[i]->body); + free(blog_entries[i]); + } + free(blog_entries); } return page;