Fix some memory leaks

This commit is contained in:
Ola Bini 2016-01-12 12:14:34 -05:00
parent b24a16e56e
commit ee39869f67
No known key found for this signature in database
GPG Key ID: 465757AF3914B4B7

View File

@ -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_);