aboutsummaryrefslogtreecommitdiff
path: root/src/template.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-08-07 13:52:38 -0400
committerGitHub <noreply@github.com>2024-08-07 13:52:38 -0400
commit99edcf7b998a1ac83b75ef3cc117c5b91c874782 (patch)
tree8548396f7db2d5603799989ea3d751b1b166c884 /src/template.c
parent1d5e5f26014ceefd824382acec732f326d8d6ce2 (diff)
downloadstasis-99edcf7b998a1ac83b75ef3cc117c5b91c874782.tar.gz
Fix leaks in tpl functions (#18)
* Free the function key string in tplfunc_frame during tpl_free() * Fix leaks in get_github_release_notes_auto_tplfunc_entrypoint(): * Free repository name * Free list of release notes
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 8e1357c..a412fa8 100644
--- a/src/template.c
+++ b/src/template.c
@@ -97,6 +97,7 @@ void tpl_free() {
}
for (unsigned i = 0; i < tpl_pool_func_used; i++) {
struct tplfunc_frame *item = tpl_pool_func[i];
+ guard_free(item->key);
guard_free(item);
}
}