aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-31 11:11:45 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:28:43 -0400
commit57e7b54b7b4102de0c5776a1268367c18090033b (patch)
treecde7c95a1cb1bd3acfe4ff5577cafeba59d7e412 /src/or/buffers.c
parent94aac84a71bc695fe594e49a4fd0947fdbbd4895 (diff)
downloadtor-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.c1
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);