ssnail

crappy and opinionated static site generator
git clone https://git.e1e0.net/ssnail.git
Log | Files | Refs | README | LICENSE

commit 103ee1c28f33ef837166cacb80d51d6489b30893
parent d6c1d94ced56648b1877f0e9a574a4ea9b396694
Author: Paco Esteban <paco@e1e0.net>
Date:   Fri, 12 Feb 2021 16:21:03 +0100

fix a couple more leaks

Diffstat:
Mssnail.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/ssnail.c b/ssnail.c @@ -212,6 +212,8 @@ main(int argc, char *argv[]) } done: + free(title); + free(url); free(header_tpl); free(footer_tpl); free(index_listing); @@ -315,6 +317,7 @@ gen_html(struct article *a) } } if (strcmp(md->key, "type") == 0 ) { + free(a->type); if ((a->type = strdup(md->value)) == NULL) { error = ssnail_error_from_errno("type"); goto out;