mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Munmap the right pointers in routerlist_free()
This commit is contained in:
parent
449b87791d
commit
1a9b4bd28c
1 changed files with 2 additions and 2 deletions
|
@ -2804,13 +2804,13 @@ routerlist_free(routerlist_t *rl)
|
|||
signed_descriptor_free(sd));
|
||||
smartlist_free(rl->routers);
|
||||
smartlist_free(rl->old_routers);
|
||||
if (routerlist->desc_store.mmap) {
|
||||
if (rl->desc_store.mmap) {
|
||||
int res = tor_munmap_file(routerlist->desc_store.mmap);
|
||||
if (res != 0) {
|
||||
log_warn(LD_FS, "Failed to munmap routerlist->desc_store.mmap");
|
||||
}
|
||||
}
|
||||
if (routerlist->extrainfo_store.mmap) {
|
||||
if (rl->extrainfo_store.mmap) {
|
||||
int res = tor_munmap_file(routerlist->extrainfo_store.mmap);
|
||||
if (res != 0) {
|
||||
log_warn(LD_FS, "Failed to munmap routerlist->extrainfo_store.mmap");
|
||||
|
|
Loading…
Add table
Reference in a new issue