Mercurial > blahgd > fmt4
changeset 1125:9293874827bf
post: don't leak parsed tag and cat names
Sadly, the recent commit (37044617c35deabfe8337a049d2da635bb14075a) did not
fix all the reference leaks surrounding the tag and category name s-expression
processing.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 09 Jun 2018 20:06:30 -0400 |
parents | 3f78b97b852d |
children | 5556e68e971c |
files | post.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/post.c Fri Jun 08 13:25:13 2018 -0400 +++ b/post.c Sat Jun 09 20:06:30 2018 -0400 @@ -93,6 +93,7 @@ post_unlock(post); } +/* consumes the struct val reference */ static void post_add_tags(avl_tree_t *taglist, struct val *list) { struct val *tagval; @@ -120,6 +121,8 @@ free(tag); } } + + val_putref(list); } static void post_remove_all_comments(struct post *post)