forgot to free blog entries

This commit is contained in:
Andrew Pamment 2018-02-27 18:57:10 +10:00
parent fbd3dc7494
commit 27de6593b1

View File

@ -90,6 +90,14 @@ char *www_blog() {
strcat(page, buffer);
len += strlen(buffer);
}
for (i=0;i<blog_entry_count;i++) {
free(blog_entries[i]->subject);
free(blog_entries[i]->author);
free(blog_entries[i]->body);
free(blog_entries[i]);
}
free(blog_entries);
}
return page;