Merge branch 'bug3888'

This commit is contained in:
Nick Mathewson 2011-09-01 10:45:34 -04:00
commit 9f144144e3
2 changed files with 5 additions and 0 deletions

4
changes/bug3888 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (bufferevents, fix on 0.2.3.1-alpha):
- Fix a use-after-free error with per-connection rate-limiting
buckets. Fixes bug 3888.

View File

@ -524,6 +524,7 @@ _connection_free(connection_t *conn)
#ifdef USE_BUFFEREVENTS
if (conn->type == CONN_TYPE_OR && TO_OR_CONN(conn)->bucket_cfg) {
ev_token_bucket_cfg_free(TO_OR_CONN(conn)->bucket_cfg);
TO_OR_CONN(conn)->bucket_cfg = NULL;
}
#endif