From: Sebastian Hahn Date: Thu, 1 Sep 2011 10:24:05 +0000 (+0200) Subject: Explicitly set bucket_cfg to NULL after we freed it X-Git-Tag: tor-0.2.3.3-alpha~5^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebb5f8df368c29dd26080ba057ffb6611aee401b;p=thirdparty%2Ftor.git Explicitly set bucket_cfg to NULL after we freed it This should fix bug 3888. --- diff --git a/src/or/connection.c b/src/or/connection.c index 7615952386..1b227d7e74 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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