From: rl1987 Date: Fri, 21 Sep 2018 16:23:19 +0000 (+0300) Subject: Refrain from using SMARTLIST_DEL_CURRENT in retry_all_listeners X-Git-Tag: tor-0.3.5.3-alpha~30^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b146bdb9af55931aa7cbabc6009d0f66142a0d8;p=thirdparty%2Ftor.git Refrain from using SMARTLIST_DEL_CURRENT in retry_all_listeners --- diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c index d8326a5be8..5ef140b6b3 100644 --- a/src/core/mainloop/connection.c +++ b/src/core/mainloop/connection.c @@ -2900,9 +2900,6 @@ retry_all_listeners(smartlist_t *new_conns, int close_all_noncontrol) "(replaced by %s:%d)", conn_type_to_string(old_conn->type), old_conn->address, old_conn->port, new_conn->address, new_conn->port); - - tor_free(r); - SMARTLIST_DEL_CURRENT(replacements, r); } SMARTLIST_FOREACH_END(r); #endif