diff options
author | Roger Dingledine <arma@torproject.org> | 2005-11-28 02:52:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-11-28 02:52:17 +0000 |
commit | 1da454a42d850ec50612416e3d1d5ac1c43b517b (patch) | |
tree | af4a5f3f74568fec1505741e2d3ebaa83e227741 /src | |
parent | f94f4c1686417de73bcee9d652e5dacc891d478b (diff) | |
download | tor-1da454a42d850ec50612416e3d1d5ac1c43b517b.tar tor-1da454a42d850ec50612416e3d1d5ac1c43b517b.tar.gz |
when returning a list of circuits, don't return a list of the same
conn over and over. that's really bad for memory.
svn:r5463
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 22f048f2d..78cda5334 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -443,7 +443,7 @@ circuit_get_all_on_orconn(connection_t *conn) for (circ=global_circuitlist;circ;circ = circ->next) { if (!circ->marked_for_close && (circ->p_conn == conn || circ->n_conn == conn)) - smartlist_add(res, conn); + smartlist_add(res, circ); } return res; } |