From: Christian Grothoff Date: Thu, 8 Dec 2011 18:01:44 +0000 (+0000) Subject: -LRN fix deallocation X-Git-Tag: initial-import-from-subversion-38251~15680 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dea1396a5ef1530440a111ba54c674baeaf010a;p=oweals%2Fgnunet.git -LRN fix deallocation --- 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; }