aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-08-05 12:11:19 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-08-05 12:11:19 -0400
commit0e948e3e8cb3d44c4f72715ffe6d3d0ead0fa147 (patch)
treec2dc96afebf1464257f4e04f2435377f5c6cd8ac
parent7414adf3424a674cdf83c4ac60356f1b31a79018 (diff)
downloadstasis-fix-leaks.tar.gz
Fix leaks in get_github_release_notes_auto_tplfunc_entrypoint():fix-leaks
* Free repository name * Free list of release notes
-rw-r--r--src/template_func_proto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template_func_proto.c b/src/template_func_proto.c
index f29c103..92ae355 100644
--- a/src/template_func_proto.c
+++ b/src/template_func_proto.c
@@ -54,6 +54,7 @@ int get_github_release_notes_auto_tplfunc_entrypoint(void *frame, void *data_out
strlist_append(&notes_list, note);
guard_free(note);
}
+ guard_free(repository);
}
}
}
@@ -61,5 +62,7 @@ int get_github_release_notes_auto_tplfunc_entrypoint(void *frame, void *data_out
if (strlist_count(notes_list)) {
*output = join(notes_list->data, "\n\n");
}
+ guard_strlist_free(&notes_list);
+
return result;
}