vim-patch:8.2.4236: accessing freed memory

Problem:    Accessing freed memory.
Solution:   Set the bh_curr pointer to NULL.
166788c657
This commit is contained in:
Christian Clason 2022-01-28 09:33:37 +01:00 committed by zeertzjq
parent 7114764ffb
commit 175692325b

View File

@ -163,6 +163,7 @@ void free_buff(buffheader_T *buf)
xfree(p);
}
buf->bh_first.b_next = NULL;
buf->bh_curr = NULL;
}
/// Return the contents of a buffer as a single string.