-LRN fix deallocation
authorChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 18:01:44 +0000 (18:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 18:01:44 +0000 (18:01 +0000)
src/util/service.c

index d582b6d80b92d43699b3e8a291e3a2d7ff136ed3..ebdf2c61a967c9daba08283a2d1dbe5c83f287f8 100644 (file)
@@ -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;
   }