From: Bart Polot Date: Wed, 24 Jun 2015 14:00:45 +0000 (+0000) Subject: - free skipped keys on tunnel Axolotl destroy X-Git-Tag: initial-import-from-subversion-38251~1704 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8e6642ed2393208d4d9caca6c4108487a95ae82;p=oweals%2Fgnunet.git - free skipped keys on tunnel Axolotl destroy --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index c94e59e27..422a1649e 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -2679,6 +2679,9 @@ destroy_ax (struct CadetTunnel *t) GNUNET_free_non_null (t->ax->DHRs); GNUNET_free_non_null (t->ax->kx_0); + while (NULL != t->ax->skipped_head) + delete_skipped_key (t, t->ax->skipped_head); + GNUNET_assert (0 == t->ax->skipped); GNUNET_free (t->ax); t->ax = NULL;