diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-31 11:43:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-31 11:43:51 -0400 |
commit | 1a9b4bd28cf22e28d2c1b7b24a092d85c7c61139 (patch) | |
tree | d787dbeb615b9ab079cbd5cd7e3b0ae992d229f0 /src | |
parent | 449b87791d5a9f15c63b39e0ff36f8ba89676c6c (diff) | |
download | tor-1a9b4bd28cf22e28d2c1b7b24a092d85c7c61139.tar.gz tor-1a9b4bd28cf22e28d2c1b7b24a092d85c7c61139.zip |
Munmap the right pointers in routerlist_free()
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index c96fb2c11d..44c698738a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -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"); |