munge the debug_lock signature before freeing it: it might help us catch use-after-free

This commit is contained in:
Nick Mathewson 2011-03-07 23:18:07 -05:00
parent b4a29c0a0f
commit f28084ddda

View File

@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype)
}
lock->lock = NULL;
lock->count = -100;
lock->signature = 0x12300fda;
mm_free(lock);
}