From 8dea1396a5ef1530440a111ba54c674baeaf010a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 8 Dec 2011 18:01:44 +0000 Subject: [PATCH] -LRN fix deallocation --- src/util/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/service.c b/src/util/service.c index d582b6d80..ebdf2c61a 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -1152,7 +1152,7 @@ receive_sockets_from_parent (struct GNUNET_SERVICE_Context *sctx) _("Could not access a pre-bound socket, will try to bind myself\n")); for (i = 0; i < count && sctx->lsocks[i] != NULL; i++) GNUNET_break (0 == GNUNET_NETWORK_socket_close (sctx->lsocks[i])); - GNUNET_free (sctx->lsocks); + GNUNET_free_non_null (sctx->lsocks); sctx->lsocks = NULL; return GNUNET_NO; } -- 2.25.1