aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c
index d805ca69c..7dec2a5da 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1302,6 +1302,7 @@ test_mmap(void)
/* make sure we can unlink. */
test_assert(unlink(fname1) == 0);
test_streq(mapping->data, "Short file.");
+ tor_munmap_file(mapping);
#endif
/* Make sure that we fail to map a no-longer-existent file. */