mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Only free strmap if it is allocated.
svn:r4846
This commit is contained in:
parent
cf90a36dd1
commit
0239249160
@ -1408,7 +1408,9 @@ dirserv_free_all(void)
|
||||
clear_cached_dir(&the_runningrouters);
|
||||
clear_cached_dir(&cached_directory);
|
||||
clear_cached_dir(&cached_runningrouters);
|
||||
strmap_free(cached_v2_networkstatus, free_cached_dir);
|
||||
cached_v2_networkstatus = NULL;
|
||||
if (cached_v2_networkstatus) {
|
||||
strmap_free(cached_v2_networkstatus, free_cached_dir);
|
||||
cached_v2_networkstatus = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user