Skip to content
Snippets Groups Projects
Commit a73a3a21 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

no more memory leaks

when you run it under normal operation
for as many as three minutes


svn:r622
parent a3962bf6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment