summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-29 12:25:05 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-29 12:25:05 -0400
commitd8fe499e08cf6c04fd6bf6230c916dcedf17dc80 (patch)
treeb484f830508864dfd163993fdfeac4455f5ec4bb /src/or/connection.c
parentb0138cd05540001f084b7bd828b3dcffbaeb5b22 (diff)
downloadtor-d8fe499e08cf6c04fd6bf6230c916dcedf17dc80.tar.gz
tor-d8fe499e08cf6c04fd6bf6230c916dcedf17dc80.zip
Revert "restore the sensible part of ac268a83408e1450544db2f23f364dfa3"
This reverts commit b82e166bec5fcc468424af1ff71e2e753ac534a2. We don't need that part in 0.2.5, since 0.2.5 no longer supports non-multithreaded builds.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index bcb17376c0..36200e57ea 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -575,17 +575,10 @@ connection_free_(connection_t *conn)
tor_free(control_conn->incoming_cmd);
}
-#ifdef TOR_IS_MULTITHREADED
/* Probably already freed by connection_free. */
- /* We don't do these frees on the multiprocess case, since in that case we
- * don't want to call event_del() postfork or it's likely to mess up.
- * Multiprocess builds are deprecated, so let's just have a one-time memory
- * leak here.
- */
tor_event_free(conn->read_event);
tor_event_free(conn->write_event);
conn->read_event = conn->write_event = NULL;
-#endif
IF_HAS_BUFFEREVENT(conn, {
/* This was a workaround to handle bugs in some old versions of libevent
* where callbacks can occur after calling bufferevent_free(). Setting