diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-23 19:55:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-19 08:26:10 -0500 |
commit | 426c9561c5f5bc5f38a42f3e46437db59fcdc7c0 (patch) | |
tree | d2e05ca6dbe3e35486e4e5d4d50d23d9daa9cddb /src/feature/nodelist/microdesc.c | |
parent | 83be4d2bbd7a4ed584f42d043558a4026c4a449d (diff) | |
download | tor-426c9561c5f5bc5f38a42f3e46437db59fcdc7c0.tar.gz tor-426c9561c5f5bc5f38a42f3e46437db59fcdc7c0.zip |
Use nodefamily_t in microdescriptors.
Closes ticket 27359.
Diffstat (limited to 'src/feature/nodelist/microdesc.c')
-rw-r--r-- | src/feature/nodelist/microdesc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/feature/nodelist/microdesc.c b/src/feature/nodelist/microdesc.c index 146c772daf..f331d5e109 100644 --- a/src/feature/nodelist/microdesc.c +++ b/src/feature/nodelist/microdesc.c @@ -23,6 +23,7 @@ #include "feature/nodelist/dirlist.h" #include "feature/nodelist/microdesc.h" #include "feature/nodelist/networkstatus.h" +#include "feature/nodelist/nodefamily.h" #include "feature/nodelist/nodelist.h" #include "feature/nodelist/routerlist.h" #include "feature/relay/router.h" @@ -882,10 +883,7 @@ microdesc_free_(microdesc_t *md, const char *fname, int lineno) if (md->body && md->saved_location != SAVED_IN_CACHE) tor_free(md->body); - if (md->family) { - SMARTLIST_FOREACH(md->family, char *, cp, tor_free(cp)); - smartlist_free(md->family); - } + nodefamily_free(md->family); short_policy_free(md->exit_policy); short_policy_free(md->ipv6_exit_policy); |