From: Roger Dingledine Date: Sun, 2 Jan 2005 06:16:46 +0000 (+0000) Subject: fix the assert bug reported by bassclef@163.com X-Git-Tag: debian-version-0.0.9.2-1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4dad0e6a4297e41e8bed7500f7ebe0797014b10;p=thirdparty%2Ftor.git fix the assert bug reported by bassclef@163.com svn:r3237 --- diff --git a/src/or/routerparse.c b/src/or/routerparse.c index a8f9aac09b..78fb316ff9 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -546,8 +546,10 @@ router_parse_runningrouters(const char *str) goto done; err: - running_routers_free(new_list); - new_list = NULL; + if (new_list) { + running_routers_free(new_list); + new_list = NULL; + } done: if (declared_key) crypto_free_pk_env(declared_key); if (tokens) {