From: David Bremner Date: Sun, 16 Dec 2012 19:58:15 +0000 (-0400) Subject: tag-utils: use the tag_opt_list_t as talloc context, if possible. X-Git-Tag: 0.15_rc1~51 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ba4e8565294fc0a197b4c08082ad912c31888008;hp=ba4e8565294fc0a197b4c08082ad912c31888008;p=obsolete%2Fnotmuch-old tag-utils: use the tag_opt_list_t as talloc context, if possible. The memory usage discipline of tag_op_list_t is never to free the internal array of tag operations before freeing the whole list, so it makes sense to take advantage of hierarchical de-allocation by talloc. By not relying on the context passed into tag_parse_line, we can allow tag_op_list_t structures to live longer than that context. ---