mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.0921: terminal test sometimes fails; using memory after free
Problem: Terminal test sometimes fails; using memory after free. Solution: Fee memory a bit later. Add test to cover this. Disable flaky screenshot test. (closes #3956)
This commit is contained in:
@@ -4735,7 +4735,6 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
|
||||
p2 += len2;
|
||||
/* TODO: handle different width */
|
||||
}
|
||||
vim_free(line1);
|
||||
|
||||
while (col < width)
|
||||
{
|
||||
@@ -4753,6 +4752,8 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
|
||||
}
|
||||
++col;
|
||||
}
|
||||
|
||||
vim_free(line1);
|
||||
}
|
||||
if (add_empty_scrollback(term, &term->tl_default_color,
|
||||
term->tl_top_diff_rows) == OK)
|
||||
|
Reference in New Issue
Block a user