diff --git a/src/or/control.c b/src/or/control.c index b1709e0d23..92dd2309ed 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1173,6 +1173,7 @@ handle_control_authenticate(control_connection_t *conn, uint32_t len, bad_password = 1; SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp)); smartlist_free(sl); + sl = NULL; } else { SMARTLIST_FOREACH(sl, char *, expected, {