summaryrefslogtreecommitdiff
path: root/evthread.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-03-07 23:18:07 -0500
committerNick Mathewson <nickm@torproject.org>2011-03-07 23:18:07 -0500
commitf28084ddda02886a97943e36099c4a523f72af0b (patch)
tree24ebacb3062d31bf86a6df7c8368a0bed2ca5d02 /evthread.c
parentb4a29c0a0fbd25a2de8a16b3049677fb2b8e1645 (diff)
downloadlibevent-f28084ddda02886a97943e36099c4a523f72af0b.tar.gz
munge the debug_lock signature before freeing it: it might help us catch use-after-free
Diffstat (limited to 'evthread.c')
-rw-r--r--evthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/evthread.c b/evthread.c
index d9c54787..a8b2534f 100644
--- a/evthread.c
+++ b/evthread.c
@@ -156,6 +156,7 @@ debug_lock_free(void *lock_, unsigned locktype)
}
lock->lock = NULL;
lock->count = -100;
+ lock->signature = 0x12300fda;
mm_free(lock);
}