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:
@@ -110,6 +110,7 @@ free_buff(buffheader_T *buf)
|
||||
vim_free(p);
|
||||
}
|
||||
buf->bh_first.b_next = NULL;
|
||||
buf->bh_curr = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user