diff options
author | Ola Bini <ola@olabini.se> | 2016-01-12 12:14:34 -0500 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2016-01-12 12:14:34 -0500 |
commit | ee39869f67a1e9e829f7807cf8df783bbbbeccc3 (patch) | |
tree | 7679aebcdbe69085a20a3c85d8fb370ff8eb2f4b /src | |
parent | b24a16e56e08c9b8ab4e4ab1d06e306cb474567c (diff) | |
download | tor-ee39869f67a1e9e829f7807cf8df783bbbbeccc3.tar.gz tor-ee39869f67a1e9e829f7807cf8df783bbbbeccc3.zip |
Fix some memory leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index a350f1d017..62aae03dba 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -21,6 +21,7 @@ #include "dirserv.h" #include "dirvote.h" #include "hibernate.h" +#include "memarea.h" #include "networkstatus.h" #include "router.h" #include "routerkeys.h" @@ -483,6 +484,7 @@ test_dir_routerinfo_parsing(void *arg) #undef CHECK_FAIL #undef CHECK_OK done: + memarea_clear_freelist(); routerinfo_free(ri); } @@ -585,6 +587,7 @@ test_dir_extrainfo_parsing(void *arg) #undef CHECK_FAIL done: + memarea_clear_freelist(); extrainfo_free(ei); routerinfo_free(ri); digestmap_free((digestmap_t*)map, routerinfo_free_wrapper_); |