]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0810: add_llist_tags() uses wrong function to free dict v9.2.0810
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sun, 19 Jul 2026 16:17:11 +0000 (16:17 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 19 Jul 2026 16:17:11 +0000 (16:17 +0000)
commit760317f234ea227a014d00aeb5d3eeb5b4556d9c
tree3160f43bbaf2a57802fc7c490e9fadc8fb3bbda1
parent75efa96ab3c8d1717c3f817eceae9471b1d54c8b
patch 9.2.0810: add_llist_tags() uses wrong function to free dict

Problem:  add_llist_tags() uses wrong function to free dict on alloc
          failure
Solution: Use dict_unref() (Yasuhiro Matsumoto).

add_llist_tags() released a dict_alloc()'d dict with vim_free() when
list_append_dict() failed, leaving a dangling pointer in the dict
garbage-collection chain. Use dict_unref().

related: #20668
closes:  #20743

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/tag.c
src/version.c