aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-30 21:22:25 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-30 21:22:25 +0000
commit23864ad423c8be7a2a2d558e47baa8dc122d8de0 (patch)
treeca429560d23f4086c059630ea03e733e89805f1d /src/or/main.c
parent80f2e1022846d26ec46eed80921c903c27699271 (diff)
downloadtor-23864ad423c8be7a2a2d558e47baa8dc122d8de0.tar
tor-23864ad423c8be7a2a2d558e47baa8dc122d8de0.tar.gz
Try to hunt down a few more leaks
svn:r5172
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 836b58556..cbc3e6db2 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1303,7 +1303,8 @@ static int
tor_init(int argc, char *argv[])
{
time_of_process_start = time(NULL);
- closeable_connection_lst = smartlist_create();
+ if (!closeable_connection_lst)
+ closeable_connection_lst = smartlist_create();
/* Initialize the history structures. */
rep_hist_init();
/* Initialize the service cache. */