diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c index f87f43e..1236e55 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -30,6 +30,7 @@ #include "crypto.h" #include "handshake.h" #include "peer.h" +#include "peer_hashtable.h" #include "poll.h" #include <fastd_version.h> @@ -854,6 +855,8 @@ int main(int argc, char *argv[]) { VECTOR_ALLOC(ctx.peers, 0); VECTOR_ALLOC(ctx.peers_temp, 0); + fastd_peer_hashtable_init(&ctx); + init_peers(&ctx); while (!terminate) { @@ -901,6 +904,8 @@ int main(int argc, char *argv[]) { on_post_down(&ctx); + fastd_peer_hashtable_free(&ctx); + VECTOR_FREE(ctx.peers_temp); VECTOR_FREE(ctx.peers); VECTOR_FREE(ctx.eth_addrs); |