mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
NULL out all mappings after tor_munmap_file()
This commit is contained in:
parent
8e94d5f22e
commit
449b87791d
@ -509,6 +509,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache, int force)
|
||||
log_warn(LD_FS,
|
||||
"Failed to unmap old microdescriptor cache while rebuilding");
|
||||
}
|
||||
cache->cache_content = NULL;
|
||||
}
|
||||
|
||||
if (finish_writing_to_file(open_file) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user