diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-18 04:18:26 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-18 04:18:26 +0000 |
commit | a73a3a21f78498a73b91c5813a7eb58dc62c8ae2 (patch) | |
tree | d8321db2c3d37512627c296cca987d0b1625011a /src | |
parent | a3962bf6fc449cfa852d4bdc5e406244a91d2064 (diff) | |
download | tor-a73a3a21f78498a73b91c5813a7eb58dc62c8ae2.tar tor-a73a3a21f78498a73b91c5813a7eb58dc62c8ae2.tar.gz |
no more memory leaks
when you run it under normal operation
for as many as three minutes
svn:r622
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routers.c b/src/or/routers.c index f04fd24ed..4ecd2fcb9 100644 --- a/src/or/routers.c +++ b/src/or/routers.c @@ -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; |