fix the assert bug reported by bassclef@163.com

svn:r3237
This commit is contained in:
Roger Dingledine 2005-01-02 06:16:46 +00:00
parent 0d7e8660c7
commit b4dad0e6a4

View File

@ -546,8 +546,10 @@ router_parse_runningrouters(const char *str)
goto done; goto done;
err: err:
if (new_list) {
running_routers_free(new_list); running_routers_free(new_list);
new_list = NULL; new_list = NULL;
}
done: done:
if (declared_key) crypto_free_pk_env(declared_key); if (declared_key) crypto_free_pk_env(declared_key);
if (tokens) { if (tokens) {