diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-30 21:22:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-30 21:22:25 +0000 |
commit | 23864ad423c8be7a2a2d558e47baa8dc122d8de0 (patch) | |
tree | ca429560d23f4086c059630ea03e733e89805f1d /src/or/routerparse.c | |
parent | 80f2e1022846d26ec46eed80921c903c27699271 (diff) | |
download | tor-23864ad423c8be7a2a2d558e47baa8dc122d8de0.tar.gz tor-23864ad423c8be7a2a2d558e47baa8dc122d8de0.zip |
Try to hunt down a few more leaks
svn:r5172
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 7665e2a705..313fcfd6aa 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -642,13 +642,11 @@ int router_parse_list_from_string(const char **s, smartlist_t *dest) { routerinfo_t *router; - smartlist_t *routers; const char *end; tor_assert(s); tor_assert(*s); - - routers = smartlist_create(); + tor_assert(dest); while (1) { *s = eat_whitespace(*s); @@ -670,11 +668,9 @@ router_parse_list_from_string(const char **s, smartlist_t *dest) continue; } - smartlist_add(routers, router); + smartlist_add(dest, router); } - smartlist_add_all(dest, routers); - return 0; } |