[tor-commits] [tor/master] Free global_rate_limit in connection_free_all().

nickm at torproject.org nickm at torproject.org
Mon Aug 15 15:06:41 UTC 2011


commit ec8d0a6d83adec7953839937c7fcbe315284c263
Author: George Kadianakis <desnacked at gmail.com>
Date:   Sat Aug 13 20:37:13 2011 +0200

    Free global_rate_limit in connection_free_all().
---
 src/or/connection.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 67e9442..2087ced 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4161,4 +4161,9 @@ connection_free_all(void)
     smartlist_free(outgoing_addrs);
     outgoing_addrs = NULL;
   }
+
+#ifdef USE_BUFFEREVENTS
+  if (global_rate_limit)
+    bufferevent_rate_limit_group_free(global_rate_limit);
+#endif
 }





More information about the tor-commits mailing list