0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4236: accessing freed memory

Problem:    Accessing freed memory.
Solution:   Set the bh_curr pointer to NULL.
This commit is contained in:
Bram Moolenaar
2022-01-27 21:56:40 +00:00
parent 37cf413e3e
commit 166788c657
2 changed files with 3 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ free_buff(buffheader_T *buf)
vim_free(p);
}
buf->bh_first.b_next = NULL;
buf->bh_curr = NULL;
}
/*