Explicitly set bucket_cfg to NULL after we freed it

This should fix bug 3888.
This commit is contained in:
Sebastian Hahn 2011-09-01 12:24:05 +02:00
parent a500389904
commit ebb5f8df36

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