aboutsummaryrefslogtreecommitdiff
path: root/src/template.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-02-26 10:03:34 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-02-26 10:03:34 -0500
commit924c8e9ae1bf1780447180ae717467d1beefc8fa (patch)
tree1601eb673dbdfb30e910f06087b3418b4ee46286 /src/template.c
parentfc187bccb5856b2d6dd3816fc69ffe0001aa615d (diff)
downloadstasis-924c8e9ae1bf1780447180ae717467d1beefc8fa.tar.gz
Fixes several memory leaks
Diffstat (limited to 'src/template.c')
-rw-r--r--src/template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/template.c b/src/template.c
index ed40e8b..a272b8a 100644
--- a/src/template.c
+++ b/src/template.c
@@ -184,6 +184,7 @@ int tpl_render_to_file(char *str, const char *filename) {
// Open the destination file for writing
fp = fopen(filename, "w+");
if (!fp) {
+ guard_free(result)
return -1;
}