fix a minor memory leak if we start up as a relay but don't

have any files in the cached-status/ directory


svn:r17671
This commit is contained in:
Roger Dingledine 2008-12-18 05:15:11 +00:00
parent d597b23c42
commit 7b5be147ee

View File

@ -131,6 +131,7 @@ router_reload_v2_networkstatus(void)
} else if (!smartlist_len(entries) && maybe_delete) {
rmdir(filename);
tor_free(filename);
smartlist_free(entries);
return 0;
}
tor_free(filename);