mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
no more memory leaks
when you run it under normal operation for as many as three minutes svn:r622
This commit is contained in:
parent
a3962bf6fc
commit
a73a3a21f7
1 changed files with 3 additions and 2 deletions
|
@ -746,11 +746,12 @@ router_resolve_directory(directory_t *dir)
|
|||
log_fn(LOG_WARN, "Couldn't resolve router %s; removing",
|
||||
dir->routers[i]->address);
|
||||
remove = 1;
|
||||
routerinfo_free(dir->routers[i]);
|
||||
} else if (options.Nickname && !strcmp(dir->routers[i]->nickname, options.Nickname)) {
|
||||
} else if (options.Nickname &&
|
||||
!strcmp(dir->routers[i]->nickname, options.Nickname)) {
|
||||
remove = 1;
|
||||
}
|
||||
if (remove) {
|
||||
routerinfo_free(dir->routers[i]);
|
||||
dir->routers[i] = dir->routers[--max];
|
||||
--dir->n_routers;
|
||||
--i;
|
||||
|
|
Loading…
Add table
Reference in a new issue