mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
munge the debug_lock signature before freeing it: it might help us catch use-after-free
This commit is contained in:
parent
b4a29c0a0f
commit
f28084ddda
@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype)
|
||||
}
|
||||
lock->lock = NULL;
|
||||
lock->count = -100;
|
||||
lock->signature = 0x12300fda;
|
||||
mm_free(lock);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user