mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 11:25:33 +00:00
klee: Fix possible assertion error
No idea how it did not happen to hit me yet.
This commit is contained in:
@@ -35,6 +35,9 @@ void *xmalloc(const size_t size)
|
||||
|
||||
void xfree(void *const p)
|
||||
{
|
||||
if (p == NULL) {
|
||||
return;
|
||||
}
|
||||
RINGBUF_FORALL(&arecs, AllocRecord, arec) {
|
||||
if (arec->ptr == p) {
|
||||
allocated_memory -= arec->size;
|
||||
|
||||
Reference in New Issue
Block a user