mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Explicitly set bucket_cfg to NULL after we freed it
This should fix bug 3888.
This commit is contained in:
parent
a500389904
commit
ebb5f8df36
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user