# HG changeset patch # User Josef 'Jeff' Sipek # Date 1528589190 14400 # Node ID 9293874827bf9526ab94ad565b966282bf531564 # Parent 3f78b97b852daa40edd2808df502177391680da3 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 diff -r 3f78b97b852d -r 9293874827bf post.c --- 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)