diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-07-31 11:11:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 12:28:43 -0400 |
commit | 57e7b54b7b4102de0c5776a1268367c18090033b (patch) | |
tree | cde7c95a1cb1bd3acfe4ff5577cafeba59d7e412 /src/or/buffers.c | |
parent | 94aac84a71bc695fe594e49a4fd0947fdbbd4895 (diff) | |
download | tor-57e7b54b7b4102de0c5776a1268367c18090033b.tar tor-57e7b54b7b4102de0c5776a1268367c18090033b.tar.gz |
Teach read_event/write_event manipulators about bufferevents.
Add an --enable-bufferevents config switch.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 5ba8819f0..a1b5a3afc 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -541,6 +541,7 @@ buf_free(buf_t *buf) { if (!buf) return; + buf_clear(buf); buf->magic = 0xdeadbeef; tor_free(buf); |