diff options
-rw-r--r-- | src/lib/core/template.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/template.c b/src/lib/core/template.c index 60ed91e..879773d 100644 --- a/src/lib/core/template.c +++ b/src/lib/core/template.c @@ -207,6 +207,7 @@ char *tpl_render(char *str) { b_close = strstr(&pos[off], "}}"); if (!b_close) { fprintf(stderr, "error while templating '%s'\n\nunbalanced brace at position %zu\n", str, z); + guard_free(output); return NULL; } else { // Jump past closing brace |