From e938b8617332a9d04c1620a6a93e25478410d98b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 21 Apr 2020 13:27:04 +0200 Subject: [PATCH] fix #6186 related bugs --- src/transport/tcp_service_legacy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1