summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-21 13:27:04 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-21 13:27:04 +0200
commite938b8617332a9d04c1620a6a93e25478410d98b (patch)
treecfd82341b8e910271b570863bac6aa72cb6eeced
parent68615f85c6aa1de6631eb823bf6c0ecdadb656ea (diff)
fix #6186 related bugs
-rw-r--r--src/transport/tcp_service_legacy.c4
1 files 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);