diff options
author | Joursoir <chat@joursoir.net> | 2021-05-21 09:28:42 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-05-21 09:28:42 +0000 |
commit | 03eebbcfcd8a684795dbc2735bdd624657e3f164 (patch) | |
tree | 3cad73738c1fac188e758a884742c54bc3bb9977 /ctimeline.c | |
parent | 7cf1f7242a34f507c97a0bc50d951e48368c0212 (diff) | |
download | ctimeline-03eebbcfcd8a684795dbc2735bdd624657e3f164.tar.gz ctimeline-03eebbcfcd8a684795dbc2735bdd624657e3f164.tar.bz2 ctimeline-03eebbcfcd8a684795dbc2735bdd624657e3f164.zip |
ctimeline: free fields of struct ctimeline_branch_list in the appropriate func
Diffstat (limited to 'ctimeline.c')
-rw-r--r-- | ctimeline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctimeline.c b/ctimeline.c index f2a114a..31c0e1b 100644 --- a/ctimeline.c +++ b/ctimeline.c @@ -31,10 +31,15 @@ static void prepare_context() */ static void forget_context() { + int i; string_release(ctx.head_title); string_release(ctx.css); string_release(ctx.header_title); string_release(ctx.header_desc); + for(i = 0; i < ctx.branches.count; i++) { + string_release(ctx.branches.list[i].name); + string_release(ctx.branches.list[i].desc); + } free(ctx.branches.list); } |