]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Free global_rate_limit in connection_free_all().
authorGeorge Kadianakis <desnacked@gmail.com>
Sat, 13 Aug 2011 18:37:13 +0000 (20:37 +0200)
committerGeorge Kadianakis <desnacked@gmail.com>
Sat, 13 Aug 2011 18:37:13 +0000 (20:37 +0200)
src/or/connection.c

index 67e9442a9c9aafa82b2ecc218e5a289b36839068..2087ceda4a1dda66a81b2ef6a5450b8b8ba3f266 100644 (file)
@@ -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
 }