From 99edcf7b998a1ac83b75ef3cc117c5b91c874782 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 7 Aug 2024 13:52:38 -0400 Subject: 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 --- src/template.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/template.c') 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); } } -- cgit