Browse Source

Free global_rate_limit in connection_free_all().

George Kadianakis 14 years ago
parent
commit
ec8d0a6d83
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/or/connection.c

+ 5 - 0
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
 }