aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-08-13 20:37:13 +0200
committerGeorge Kadianakis <desnacked@gmail.com>2011-08-13 20:37:13 +0200
commitec8d0a6d83adec7953839937c7fcbe315284c263 (patch)
tree89c9adab2166126e080eff1907ad33cd5895cd59 /src
parenta5fd07d178d1260ec7073c6ea0db185b8527fc68 (diff)
downloadtor-ec8d0a6d83adec7953839937c7fcbe315284c263.tar
tor-ec8d0a6d83adec7953839937c7fcbe315284c263.tar.gz
Free global_rate_limit in connection_free_all().
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 67e9442a9..2087ceda4 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
}