mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +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);
|
||||
if (cached_v2_networkstatus) {
|
||||
strmap_free(cached_v2_networkstatus, free_cached_dir);
|
||||
cached_v2_networkstatus = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user