Only free strmap if it is allocated.

svn:r4846
This commit is contained in:
Nick Mathewson 2005-08-26 18:48:13 +00:00
parent cf90a36dd1
commit 0239249160

View File

@ -1408,7 +1408,9 @@ dirserv_free_all(void)
clear_cached_dir(&the_runningrouters);
clear_cached_dir(&cached_directory);
clear_cached_dir(&cached_runningrouters);
if (cached_v2_networkstatus) {
strmap_free(cached_v2_networkstatus, free_cached_dir);
cached_v2_networkstatus = NULL;
}
}