From: Christian Grothoff Date: Tue, 21 Apr 2020 11:27:04 +0000 (+0200) Subject: fix #6186 related bugs X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e938b8617332a9d04c1620a6a93e25478410d98b;p=oweals%2Fgnunet.git fix #6186 related bugs --- diff --git a/src/transport/tcp_service_legacy.c b/src/transport/tcp_service_legacy.c index f207863f9..fb4e9c3c9 100644 --- a/src/transport/tcp_service_legacy.c +++ b/src/transport/tcp_service_legacy.c @@ -1474,7 +1474,7 @@ shutdown: i = 0; if (NULL != sctx.addrs) while (NULL != sctx.addrs[i]) - GNUNET_free (sctx.addrs[i++]); + GNUNET_free_nz (sctx.addrs[i++]); GNUNET_free_non_null (sctx.addrs); GNUNET_free_non_null (sctx.addrlens); GNUNET_free_non_null (logfile); @@ -1631,7 +1631,7 @@ LEGACY_SERVICE_stop (struct LEGACY_SERVICE_Context *sctx) { i = 0; while (NULL != sctx->addrs[i]) - GNUNET_free (sctx->addrs[i++]); + GNUNET_free_nz (sctx->addrs[i++]); GNUNET_free (sctx->addrs); } GNUNET_free_non_null (sctx->addrlens);