Problem: getframelayout() uses wrong function to free lists on alloc
failure.
Solution: Use list_free() on alloc failure (Yasuhiro Matsumoto).
get_framelayout() released a list_alloc()'d list with vim_free() when
list_append_list() failed, leaving a dangling pointer in the list
garbage-collection chain. Use list_free() so it is unlinked.
related: #20668
related: #20743
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
return;
if (list_append_list(l, fr_list) == FAIL)
{
- vim_free(fr_list);
+ list_free(fr_list);
return;
}
}
return;
if (list_append_list(fr_list, win_list) == FAIL)
{
- vim_free(win_list);
+ list_free(win_list);
return;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 809,
/**/
808,
/**/